home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 7 / Eagles_Nest_Mac_Collection_Disc_7.TOAST / General Communication / DialogerPro / Dialoger Professional 1.0b1 / DialogMaker / cards.xml < prev    next >
Text File  |  1992-05-13  |  132KB  |  3,805 lines

  1. card_2941.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>2941</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2662</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_6778.css" />
  12.     <part>
  13.         <id>6</id>
  14.         <type>button</type>
  15.         <visible> <true /> </visible>
  16.         <reserved5> 0 </reserved5>
  17.         <reserved4> 0 </reserved4>
  18.         <reserved3> 0 </reserved3>
  19.         <reserved2> 0 </reserved2>
  20.         <reserved1> 0 </reserved1>
  21.         <enabled> <true /> </enabled>
  22.         <rect>
  23.             <left>151</left>
  24.             <top>96</top>
  25.             <right>352</right>
  26.             <bottom>185</bottom>
  27.         </rect>
  28.         <style>rectangle</style>
  29.         <showName> <false /> </showName>
  30.         <highlight> <false /> </highlight>
  31.         <autoHighlight> <false /> </autoHighlight>
  32.         <sharedHighlight> <true /> </sharedHighlight>
  33.         <family>0</family>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>0</icon>
  36.         <textAlign>center</textAlign>
  37.         <font>Chicago</font>
  38.         <textSize>12</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <name>25525</name>
  41.         <script>-- getsHit: true-- logic: Push-- grid: 0,0-- iType: picton mouseUpshowPictend mouseUpon mouseDownshowPictpass mouseDownend mouseDown</script>
  42.     </part>
  43.     <content>
  44.         <layer>background</layer>
  45.         <id>48</id>
  46.         <text>148,93,355,1883falseModal</text>
  47.     </content>
  48.     <content>
  49.         <layer>background</layer>
  50.         <id>20</id>
  51.         <text>Splash</text>
  52.     </content>
  53.     <content>
  54.         <layer>background</layer>
  55.         <id>83</id>
  56.         <text>false</text>
  57.     </content>
  58.     <content>
  59.         <layer>background</layer>
  60.         <id>80</id>
  61.         <text>This splash screen should be used in all products using the Dialoger Runtime X's. It may be displayed at any time -- either as part of a startup process or within the stack's credits. For complete details, see the runtime license agreement.</text>
  62.     </content>
  63.     <content>
  64.         <layer>background</layer>
  65.         <id>28</id>
  66.         <text>cd btn id 6</text>
  67.     </content>
  68.     <content>
  69.         <layer>background</layer>
  70.         <id>36</id>
  71.         <text>Picture "25525"</text>
  72.     </content>
  73.     <name>Splash</name>
  74.     <script></script>
  75. </card>
  76.  
  77.  
  78. card_6195.xml
  79. <?xml version="1.0" encoding="utf-8" ?>
  80. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  81. <card>
  82.     <id>6195</id>
  83.     <filler1>0</filler1>
  84.     <cantDelete> <false /> </cantDelete>
  85.     <showPict> <true /> </showPict>
  86.     <dontSearch> <false /> </dontSearch>
  87.     <owner>2662</owner>
  88.     <link rel="stylesheet" type="text/css" href="stylesheet_6778.css" />
  89.     <part>
  90.         <id>3</id>
  91.         <type>button</type>
  92.         <visible> <true /> </visible>
  93.         <reserved5> 0 </reserved5>
  94.         <reserved4> 0 </reserved4>
  95.         <reserved3> 0 </reserved3>
  96.         <reserved2> 0 </reserved2>
  97.         <reserved1> 0 </reserved1>
  98.         <enabled> <true /> </enabled>
  99.         <rect>
  100.             <left>208</left>
  101.             <top>240</top>
  102.             <right>288</right>
  103.             <bottom>258</bottom>
  104.         </rect>
  105.         <style>roundrect</style>
  106.         <showName> <true /> </showName>
  107.         <highlight> <false /> </highlight>
  108.         <autoHighlight> <false /> </autoHighlight>
  109.         <sharedHighlight> <true /> </sharedHighlight>
  110.         <family>0</family>
  111.         <titleWidth>0</titleWidth>
  112.         <icon>0</icon>
  113.         <textAlign>center</textAlign>
  114.         <font>Chicago</font>
  115.         <textSize>12</textSize>
  116.         <textStyle>plain</textStyle>
  117.         <name>OK</name>
  118.         <script>-- getsHit: true-- iType: btn</script>
  119.     </part>
  120.     <part>
  121.         <id>4</id>
  122.         <type>button</type>
  123.         <visible> <true /> </visible>
  124.         <reserved5> 0 </reserved5>
  125.         <reserved4> 0 </reserved4>
  126.         <reserved3> 0 </reserved3>
  127.         <reserved2> 0 </reserved2>
  128.         <reserved1> 0 </reserved1>
  129.         <enabled> <true /> </enabled>
  130.         <rect>
  131.             <left>304</left>
  132.             <top>240</top>
  133.             <right>384</right>
  134.             <bottom>258</bottom>
  135.         </rect>
  136.         <style>roundrect</style>
  137.         <showName> <true /> </showName>
  138.         <highlight> <false /> </highlight>
  139.         <autoHighlight> <false /> </autoHighlight>
  140.         <sharedHighlight> <true /> </sharedHighlight>
  141.         <family>0</family>
  142.         <titleWidth>0</titleWidth>
  143.         <icon>0</icon>
  144.         <textAlign>center</textAlign>
  145.         <font>Chicago</font>
  146.         <textSize>12</textSize>
  147.         <textStyle>plain</textStyle>
  148.         <name>Cancel</name>
  149.         <script>-- getsHit: true-- iType: btn</script>
  150.     </part>
  151.     <part>
  152.         <id>5</id>
  153.         <type>field</type>
  154.         <visible> <true /> </visible>
  155.         <dontWrap> <false /> </dontWrap>
  156.         <dontSearch> <false /> </dontSearch>
  157.         <sharedText> <false /> </sharedText>
  158.         <fixedLineHeight> <true /> </fixedLineHeight>
  159.         <autoTab> <false /> </autoTab>
  160.         <lockText> <true /> </lockText>
  161.         <rect>
  162.             <left>88</left>
  163.             <top>165</top>
  164.             <right>384</right>
  165.             <bottom>223</bottom>
  166.         </rect>
  167.         <style>scrolling</style>
  168.         <autoSelect> <false /> </autoSelect>
  169.         <showLines> <false /> </showLines>
  170.         <wideMargins> <false /> </wideMargins>
  171.         <multipleLines> <false /> </multipleLines>
  172.         <reservedFamily> 0 </reservedFamily>
  173.         <titleWidth>0</titleWidth>
  174.         <icon>0</icon>
  175.         <textAlign>left</textAlign>
  176.         <font>Geneva</font>
  177.         <textSize>10</textSize>
  178.         <textStyle>plain</textStyle>
  179.         <textHeight>13</textHeight>
  180.         <name></name>
  181.         <script>-- Prot: false-- Fancy: true-- Scroll: true-- getsHit: false-- iType: edit</script>
  182.     </part>
  183.     <part>
  184.         <id>7</id>
  185.         <type>button</type>
  186.         <visible> <true /> </visible>
  187.         <reserved5> 0 </reserved5>
  188.         <reserved4> 0 </reserved4>
  189.         <reserved3> 0 </reserved3>
  190.         <reserved2> 0 </reserved2>
  191.         <reserved1> 0 </reserved1>
  192.         <enabled> <true /> </enabled>
  193.         <rect>
  194.             <left>88</left>
  195.             <top>240</top>
  196.             <right>195</right>
  197.             <bottom>258</bottom>
  198.         </rect>
  199.         <style>roundrect</style>
  200.         <showName> <true /> </showName>
  201.         <highlight> <false /> </highlight>
  202.         <autoHighlight> <false /> </autoHighlight>
  203.         <sharedHighlight> <true /> </sharedHighlight>
  204.         <family>0</family>
  205.         <titleWidth>0</titleWidth>
  206.         <icon>0</icon>
  207.         <textAlign>center</textAlign>
  208.         <font>Chicago</font>
  209.         <textSize>12</textSize>
  210.         <textStyle>plain</textStyle>
  211.         <name>Hide Scrollbar</name>
  212.         <script>-- getsHit: true-- iType: btn</script>
  213.     </part>
  214.     <content>
  215.         <layer>background</layer>
  216.         <id>48</id>
  217.         <text>80,152,393,2674falseUnHit,282errModeless</text>
  218.     </content>
  219.     <content>
  220.         <layer>background</layer>
  221.         <id>20</id>
  222.         <text>Scrollie</text>
  223.     </content>
  224.     <content>
  225.         <layer>background</layer>
  226.         <id>83</id>
  227.         <text>false</text>
  228.     </content>
  229.     <content>
  230.         <layer>background</layer>
  231.         <id>28</id>
  232.         <text>cd btn id 3cd btn id 4cd fld id 5cd btn id 7</text>
  233.     </content>
  234.     <content>
  235.         <layer>background</layer>
  236.         <id>36</id>
  237.         <text>Button "OK"Button "Cancel"Scrolling Edit Text "Sometimes, in the course"Button "Hide Scrollbar"</text>
  238.     </content>
  239.     <content>
  240.         <layer>card</layer>
  241.         <id>5</id>
  242.         <text>Sometimes, in the course of human events it becomes necessary to type long passages of text for no reason at all. These passages must be somewhat coherent yet have not overall topic. It is therefore very difficult to accomplish effectively.</text>
  243.     </content>
  244.     <content>
  245.         <layer>background</layer>
  246.         <id>80</id>
  247.         <text>This dialog demonstrates the ability to change a text item from being scrolling to not while the dialog is being displayed.</text>
  248.     </content>
  249.     <content>
  250.         <layer>background</layer>
  251.         <id>30</id>
  252.         <text>MessageToolsVariable WatcherMessage WatcherScrollFatBitsPatternsNew Dialog MakerScript of stack Montana:Dialoger:Pro 2.0:New Dialog Maker</text>
  253.     </content>
  254.     <name>Scrollie</name>
  255.     <script>on UnHit dialog, itemHit, partHit-- Created on: Monday, April 9, 1990global scrollShowingif itemHit = 0 then -- Initialize dialogput true into scrollShowingelse if itemHit = 1 then -- Button "OK"else if itemHit = 2 then -- Button "Cancel"else if itemHit = 4 then -- Button "Show Scrollbar"if scrollShowing thendChanger dialog,"4‚óäShow Scrollbar","3‚óäHideScroll"put false into scrollShowingelsedChanger dialog,"4‚óäHide Scrollbar","3‚óäShowScroll"put true into scrollShowingend ifend ifend UnHiton err dialog, errID-- Called for all non-fatal errors.answer "Error encountered:&&"errIDend err</script>
  256. </card>
  257.  
  258.  
  259. card_3518.xml
  260. <?xml version="1.0" encoding="utf-8" ?>
  261. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  262. <card>
  263.     <id>3518</id>
  264.     <filler1>0</filler1>
  265.     <cantDelete> <false /> </cantDelete>
  266.     <showPict> <true /> </showPict>
  267.     <dontSearch> <false /> </dontSearch>
  268.     <owner>2662</owner>
  269.     <link rel="stylesheet" type="text/css" href="stylesheet_6778.css" />
  270.     <part>
  271.         <id>1</id>
  272.         <type>button</type>
  273.         <visible> <true /> </visible>
  274.         <reserved5> 0 </reserved5>
  275.         <reserved4> 0 </reserved4>
  276.         <reserved3> 0 </reserved3>
  277.         <reserved2> 0 </reserved2>
  278.         <reserved1> 0 </reserved1>
  279.         <enabled> <true /> </enabled>
  280.         <rect>
  281.             <left>238</left>
  282.             <top>203</top>
  283.             <right>318</right>
  284.             <bottom>221</bottom>
  285.         </rect>
  286.         <style>roundrect</style>
  287.         <showName> <true /> </showName>
  288.         <highlight> <false /> </highlight>
  289.         <autoHighlight> <false /> </autoHighlight>
  290.         <sharedHighlight> <true /> </sharedHighlight>
  291.         <family>0</family>
  292.         <titleWidth>0</titleWidth>
  293.         <icon>0</icon>
  294.         <textAlign>center</textAlign>
  295.         <font>Chicago</font>
  296.         <textSize>12</textSize>
  297.         <textStyle>plain</textStyle>
  298.         <name>OK</name>
  299.         <script>-- getsHit: true-- iType: btn</script>
  300.     </part>
  301.     <part>
  302.         <id>2</id>
  303.         <type>button</type>
  304.         <visible> <true /> </visible>
  305.         <reserved5> 0 </reserved5>
  306.         <reserved4> 0 </reserved4>
  307.         <reserved3> 0 </reserved3>
  308.         <reserved2> 0 </reserved2>
  309.         <reserved1> 0 </reserved1>
  310.         <enabled> <true /> </enabled>
  311.         <rect>
  312.             <left>240</left>
  313.             <top>240</top>
  314.             <right>320</right>
  315.             <bottom>258</bottom>
  316.         </rect>
  317.         <style>roundrect</style>
  318.         <showName> <true /> </showName>
  319.         <highlight> <false /> </highlight>
  320.         <autoHighlight> <false /> </autoHighlight>
  321.         <sharedHighlight> <true /> </sharedHighlight>
  322.         <family>0</family>
  323.         <titleWidth>0</titleWidth>
  324.         <icon>0</icon>
  325.         <textAlign>center</textAlign>
  326.         <font>Chicago</font>
  327.         <textSize>12</textSize>
  328.         <textStyle>plain</textStyle>
  329.         <name>Cancel</name>
  330.         <script>-- getsHit: true-- iType: btn</script>
  331.     </part>
  332.     <part>
  333.         <id>6</id>
  334.         <type>button</type>
  335.         <visible> <true /> </visible>
  336.         <reserved5> 0 </reserved5>
  337.         <reserved4> 0 </reserved4>
  338.         <reserved3> 0 </reserved3>
  339.         <reserved2> 0 </reserved2>
  340.         <reserved1> 0 </reserved1>
  341.         <enabled> <true /> </enabled>
  342.         <rect>
  343.             <left>99</left>
  344.             <top>172</top>
  345.             <right>328</right>
  346.             <bottom>188</bottom>
  347.         </rect>
  348.         <style>rectangle</style>
  349.         <showName> <true /> </showName>
  350.         <highlight> <false /> </highlight>
  351.         <autoHighlight> <false /> </autoHighlight>
  352.         <sharedHighlight> <true /> </sharedHighlight>
  353.         <family>0</family>
  354.         <titleWidth>0</titleWidth>
  355.         <icon>0</icon>
  356.         <textAlign>center</textAlign>
  357.         <font>Chicago</font>
  358.         <textSize>12</textSize>
  359.         <textStyle>plain</textStyle>
  360.         <name>Scroll Bar</name>
  361.         <script>-- ID: 9254-- proc: Scrollbar-- max: 100-- min: 1-- init: 1-- getsHit: true-- iType: CNTL</script>
  362.     </part>
  363.     <part>
  364.         <id>7</id>
  365.         <type>field</type>
  366.         <visible> <true /> </visible>
  367.         <dontWrap> <false /> </dontWrap>
  368.         <dontSearch> <false /> </dontSearch>
  369.         <sharedText> <false /> </sharedText>
  370.         <fixedLineHeight> <true /> </fixedLineHeight>
  371.         <autoTab> <false /> </autoTab>
  372.         <lockText> <true /> </lockText>
  373.         <rect>
  374.             <left>160</left>
  375.             <top>200</top>
  376.             <right>213</right>
  377.             <bottom>222</bottom>
  378.         </rect>
  379.         <style>rectangle</style>
  380.         <autoSelect> <false /> </autoSelect>
  381.         <showLines> <false /> </showLines>
  382.         <wideMargins> <false /> </wideMargins>
  383.         <multipleLines> <false /> </multipleLines>
  384.         <reservedFamily> 0 </reservedFamily>
  385.         <titleWidth>0</titleWidth>
  386.         <icon>0</icon>
  387.         <textAlign>left</textAlign>
  388.         <font>Chicago</font>
  389.         <textSize>12</textSize>
  390.         <textStyle>plain</textStyle>
  391.         <textHeight>18</textHeight>
  392.         <name></name>
  393.         <script>-- Fancy: false-- Scroll: false-- Prot: false-- getsHit: true-- iType: edit</script>
  394.     </part>
  395.     <part>
  396.         <id>8</id>
  397.         <type>field</type>
  398.         <visible> <true /> </visible>
  399.         <dontWrap> <false /> </dontWrap>
  400.         <dontSearch> <false /> </dontSearch>
  401.         <sharedText> <false /> </sharedText>
  402.         <fixedLineHeight> <true /> </fixedLineHeight>
  403.         <autoTab> <false /> </autoTab>
  404.         <lockText> <true /> </lockText>
  405.         <rect>
  406.             <left>104</left>
  407.             <top>203</top>
  408.             <right>154</right>
  409.             <bottom>219</bottom>
  410.         </rect>
  411.         <style>opaque</style>
  412.         <autoSelect> <false /> </autoSelect>
  413.         <showLines> <false /> </showLines>
  414.         <wideMargins> <false /> </wideMargins>
  415.         <multipleLines> <false /> </multipleLines>
  416.         <reservedFamily> 0 </reservedFamily>
  417.         <titleWidth>0</titleWidth>
  418.         <icon>0</icon>
  419.         <textAlign>left</textAlign>
  420.         <font>Chicago</font>
  421.         <textSize>12</textSize>
  422.         <textStyle>plain</textStyle>
  423.         <textHeight>14</textHeight>
  424.         <name></name>
  425.         <script>-- Prot: false-- Fancy: false-- Scroll: false-- getsHit: false-- iType: stat</script>
  426.     </part>
  427.     <content>
  428.         <layer>background</layer>
  429.         <id>48</id>
  430.         <text>88,160,338,2321falsecntlHit,332Modal</text>
  431.     </content>
  432.     <content>
  433.         <layer>background</layer>
  434.         <id>28</id>
  435.         <text>cd btn id 1cd btn id 2cd btn id 6cd fld id 7cd fld id 8</text>
  436.     </content>
  437.     <content>
  438.         <layer>background</layer>
  439.         <id>36</id>
  440.         <text>Button "OK"Button "Cancel"Custom Scrollbar "Scroll Bar"Editable Text ""Static Text "Value:"</text>
  441.     </content>
  442.     <content>
  443.         <layer>background</layer>
  444.         <id>20</id>
  445.         <text>Scroll Playground</text>
  446.     </content>
  447.     <content>
  448.         <layer>card</layer>
  449.         <id>8</id>
  450.         <text>Value:</text>
  451.     </content>
  452.     <content>
  453.         <layer>background</layer>
  454.         <id>83</id>
  455.         <text>false</text>
  456.     </content>
  457.     <content>
  458.         <layer>background</layer>
  459.         <id>80</id>
  460.         <text>This dialog illustrates the appearance and use of custom controls. Specifically, this one uses the Progress Box CDEF. To change the value of the control, click on the boxed area or enter a value between 1 and 100 into the editable text area.</text>
  461.     </content>
  462.     <name>Scroll Playground</name>
  463.     <script>on cntlHit dialog, itemHit, partHit-- Created on: Sunday, March 18, 1990if itemHit = 0 then -- Initialize dialogdChanger dialog,"0‚óäColor Yellow"--,"3‚óäColor Blue"else if itemHit = 1 then -- Button "OK"else if itemHit = 2 then -- Button "Cancel"else if itemHit = 3 then -- Custom Scrollbarget dContents(dialog,3)if partHit = 20 thendChanger dialog,"3‚óä"&it-1,"4‚óä"&dContents(dialog,3)else if partHit = 22 thendChanger dialog,"3‚óä"&it-10,"4‚óä"&dContents(dialog,3)else if partHit = 21 thendChanger dialog,"3‚óä"&it+1,"4‚óä"&dContents(dialog,3)else if partHit = 23 thendChanger dialog,"3‚óä"&it+10,"4‚óä"&dContents(dialog,3)else -- thumbdChanger dialog,"4‚óä"&itend ifelse if itemHit = 4 then -- Editable Text ""dChanger dialog, "3‚óä"&dContents(dialog,4)end ifend cntlHiton dumHit dialog, itemHit, partHit-- Created on: Monday, February 19, 1990if itemHit = 0 then -- Initialize dialogelse if itemHit = 4 then -- Custom Control "My Control"get dContents(dialog,4)if partHit = 20 thendChanger dialog,"4‚óä"&it-1,"6‚óä"&dContents(dialog,4)else if partHit = 22 thendChanger dialog,"4‚óä"&it-10,"6‚óä"&dContents(dialog,4)else if partHit = 21 thendChanger dialog,"4‚óä"&it+1,"6‚óä"&dContents(dialog,4)else if partHit = 23 thendChanger dialog,"4‚óä"&it+10,"6‚óä"&dContents(dialog,4)elsedChanger dialog,"6‚óä"&itend ifend ifend dumHit</script>
  464. </card>
  465.  
  466.  
  467. card_5014.xml
  468. <?xml version="1.0" encoding="utf-8" ?>
  469. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  470. <card>
  471.     <id>5014</id>
  472.     <filler1>0</filler1>
  473.     <cantDelete> <false /> </cantDelete>
  474.     <showPict> <true /> </showPict>
  475.     <dontSearch> <false /> </dontSearch>
  476.     <owner>2662</owner>
  477.     <link rel="stylesheet" type="text/css" href="stylesheet_6778.css" />
  478.     <part>
  479.         <id>1</id>
  480.         <type>button</type>
  481.         <visible> <true /> </visible>
  482.         <reserved5> 0 </reserved5>
  483.         <reserved4> 0 </reserved4>
  484.         <reserved3> 0 </reserved3>
  485.         <reserved2> 0 </reserved2>
  486.         <reserved1> 0 </reserved1>
  487.         <enabled> <true /> </enabled>
  488.         <rect>
  489.             <left>216</left>
  490.             <top>232</top>
  491.             <right>296</right>
  492.             <bottom>250</bottom>
  493.         </rect>
  494.         <style>roundrect</style>
  495.         <showName> <true /> </showName>
  496.         <highlight> <false /> </highlight>
  497.         <autoHighlight> <false /> </autoHighlight>
  498.         <sharedHighlight> <true /> </sharedHighlight>
  499.         <family>0</family>
  500.         <titleWidth>0</titleWidth>
  501.         <icon>0</icon>
  502.         <textAlign>center</textAlign>
  503.         <font>Chicago</font>
  504.         <textSize>12</textSize>
  505.         <textStyle>plain</textStyle>
  506.         <name>OK</name>
  507.         <script>-- getsHit: true-- iType: btn</script>
  508.     </part>
  509.     <part>
  510.         <id>2</id>
  511.         <type>button</type>
  512.         <visible> <true /> </visible>
  513.         <reserved5> 0 </reserved5>
  514.         <reserved4> 0 </reserved4>
  515.         <reserved3> 0 </reserved3>
  516.         <reserved2> 0 </reserved2>
  517.         <reserved1> 0 </reserved1>
  518.         <enabled> <true /> </enabled>
  519.         <rect>
  520.             <left>216</left>
  521.             <top>256</top>
  522.             <right>296</right>
  523.             <bottom>274</bottom>
  524.         </rect>
  525.         <style>roundrect</style>
  526.         <showName> <true /> </showName>
  527.         <highlight> <false /> </highlight>
  528.         <autoHighlight> <false /> </autoHighlight>
  529.         <sharedHighlight> <true /> </sharedHighlight>
  530.         <family>0</family>
  531.         <titleWidth>0</titleWidth>
  532.         <icon>0</icon>
  533.         <textAlign>center</textAlign>
  534.         <font>Chicago</font>
  535.         <textSize>12</textSize>
  536.         <textStyle>plain</textStyle>
  537.         <name>Cancel</name>
  538.         <script>-- getsHit: true-- iType: btn</script>
  539.     </part>
  540.     <part>
  541.         <id>3</id>
  542.         <type>field</type>
  543.         <visible> <true /> </visible>
  544.         <dontWrap> <false /> </dontWrap>
  545.         <dontSearch> <false /> </dontSearch>
  546.         <sharedText> <false /> </sharedText>
  547.         <fixedLineHeight> <true /> </fixedLineHeight>
  548.         <autoTab> <false /> </autoTab>
  549.         <lockText> <true /> </lockText>
  550.         <rect>
  551.             <left>87</left>
  552.             <top>208</top>
  553.             <right>199</right>
  554.             <bottom>275</bottom>
  555.         </rect>
  556.         <style>scrolling</style>
  557.         <autoSelect> <false /> </autoSelect>
  558.         <showLines> <false /> </showLines>
  559.         <wideMargins> <false /> </wideMargins>
  560.         <multipleLines> <false /> </multipleLines>
  561.         <reservedFamily> 0 </reservedFamily>
  562.         <titleWidth>0</titleWidth>
  563.         <icon>0</icon>
  564.         <textAlign>left</textAlign>
  565.         <font>Chicago</font>
  566.         <textSize>12</textSize>
  567.         <textStyle>plain</textStyle>
  568.         <textHeight>16</textHeight>
  569.         <name></name>
  570.         <script>-- getsHit: true-- uType: list-- iType: user</script>
  571.     </part>
  572.     <part>
  573.         <id>5</id>
  574.         <type>field</type>
  575.         <visible> <true /> </visible>
  576.         <dontWrap> <false /> </dontWrap>
  577.         <dontSearch> <false /> </dontSearch>
  578.         <sharedText> <false /> </sharedText>
  579.         <fixedLineHeight> <true /> </fixedLineHeight>
  580.         <autoTab> <false /> </autoTab>
  581.         <lockText> <true /> </lockText>
  582.         <rect>
  583.             <left>88</left>
  584.             <top>112</top>
  585.             <right>296</right>
  586.             <bottom>176</bottom>
  587.         </rect>
  588.         <style>rectangle</style>
  589.         <autoSelect> <false /> </autoSelect>
  590.         <showLines> <false /> </showLines>
  591.         <wideMargins> <false /> </wideMargins>
  592.         <multipleLines> <false /> </multipleLines>
  593.         <reservedFamily> 0 </reservedFamily>
  594.         <titleWidth>0</titleWidth>
  595.         <icon>0</icon>
  596.         <textAlign>left</textAlign>
  597.         <font>Chicago</font>
  598.         <textSize>12</textSize>
  599.         <textStyle>plain</textStyle>
  600.         <textHeight>18</textHeight>
  601.         <name></name>
  602.         <script>-- Fancy: true-- Scroll: false-- Prot: false-- getsHit: true-- iType: edit</script>
  603.     </part>
  604.     <part>
  605.         <id>6</id>
  606.         <type>field</type>
  607.         <visible> <true /> </visible>
  608.         <dontWrap> <false /> </dontWrap>
  609.         <dontSearch> <false /> </dontSearch>
  610.         <sharedText> <false /> </sharedText>
  611.         <fixedLineHeight> <true /> </fixedLineHeight>
  612.         <autoTab> <false /> </autoTab>
  613.         <lockText> <true /> </lockText>
  614.         <rect>
  615.             <left>88</left>
  616.             <top>178</top>
  617.             <right>142</right>
  618.             <bottom>194</bottom>
  619.         </rect>
  620.         <style>opaque</style>
  621.         <autoSelect> <false /> </autoSelect>
  622.         <showLines> <false /> </showLines>
  623.         <wideMargins> <false /> </wideMargins>
  624.         <multipleLines> <false /> </multipleLines>
  625.         <reservedFamily> 0 </reservedFamily>
  626.         <titleWidth>0</titleWidth>
  627.         <icon>0</icon>
  628.         <textAlign>left</textAlign>
  629.         <font>Chicago</font>
  630.         <textSize>12</textSize>
  631.         <textStyle>plain</textStyle>
  632.         <textHeight>14</textHeight>
  633.         <name></name>
  634.         <script>-- Prot: false-- Fancy: false-- Scroll: false-- getsHit: false-- iType: stat</script>
  635.     </part>
  636.     <part>
  637.         <id>8</id>
  638.         <type>field</type>
  639.         <visible> <true /> </visible>
  640.         <dontWrap> <false /> </dontWrap>
  641.         <dontSearch> <false /> </dontSearch>
  642.         <sharedText> <false /> </sharedText>
  643.         <fixedLineHeight> <true /> </fixedLineHeight>
  644.         <autoTab> <false /> </autoTab>
  645.         <lockText> <true /> </lockText>
  646.         <rect>
  647.             <left>144</left>
  648.             <top>178</top>
  649.             <right>240</right>
  650.             <bottom>196</bottom>
  651.         </rect>
  652.         <style>shadow</style>
  653.         <autoSelect> <false /> </autoSelect>
  654.         <showLines> <false /> </showLines>
  655.         <wideMargins> <false /> </wideMargins>
  656.         <multipleLines> <false /> </multipleLines>
  657.         <reservedFamily> 0 </reservedFamily>
  658.         <titleWidth>0</titleWidth>
  659.         <icon>0</icon>
  660.         <textAlign>left</textAlign>
  661.         <font>Geneva</font>
  662.         <textSize>12</textSize>
  663.         <textStyle>plain</textStyle>
  664.         <textHeight>16</textHeight>
  665.         <name></name>
  666.         <script>-- getsHit: true-- uType: pop-- iType: user</script>
  667.     </part>
  668.     <part>
  669.         <id>9</id>
  670.         <type>button</type>
  671.         <visible> <true /> </visible>
  672.         <reserved5> 0 </reserved5>
  673.         <reserved4> 0 </reserved4>
  674.         <reserved3> 0 </reserved3>
  675.         <reserved2> 0 </reserved2>
  676.         <reserved1> 0 </reserved1>
  677.         <enabled> <true /> </enabled>
  678.         <rect>
  679.             <left>216</left>
  680.             <top>208</top>
  681.             <right>296</right>
  682.             <bottom>226</bottom>
  683.         </rect>
  684.         <style>roundrect</style>
  685.         <showName> <true /> </showName>
  686.         <highlight> <false /> </highlight>
  687.         <autoHighlight> <false /> </autoHighlight>
  688.         <sharedHighlight> <true /> </sharedHighlight>
  689.         <family>0</family>
  690.         <titleWidth>0</titleWidth>
  691.         <icon>0</icon>
  692.         <textAlign>center</textAlign>
  693.         <font>Chicago</font>
  694.         <textSize>12</textSize>
  695.         <textStyle>plain</textStyle>
  696.         <name>Inactivate</name>
  697.         <script>-- getsHit: true-- iType: btn</script>
  698.     </part>
  699.     <part>
  700.         <id>10</id>
  701.         <type>field</type>
  702.         <visible> <true /> </visible>
  703.         <dontWrap> <false /> </dontWrap>
  704.         <dontSearch> <false /> </dontSearch>
  705.         <sharedText> <false /> </sharedText>
  706.         <fixedLineHeight> <true /> </fixedLineHeight>
  707.         <autoTab> <false /> </autoTab>
  708.         <lockText> <true /> </lockText>
  709.         <rect>
  710.             <left>176</left>
  711.             <top>88</top>
  712.             <right>296</right>
  713.             <bottom>110</bottom>
  714.         </rect>
  715.         <style>rectangle</style>
  716.         <autoSelect> <false /> </autoSelect>
  717.         <showLines> <false /> </showLines>
  718.         <wideMargins> <false /> </wideMargins>
  719.         <multipleLines> <false /> </multipleLines>
  720.         <reservedFamily> 0 </reservedFamily>
  721.         <titleWidth>0</titleWidth>
  722.         <icon>0</icon>
  723.         <textAlign>left</textAlign>
  724.         <font>Chicago</font>
  725.         <textSize>12</textSize>
  726.         <textStyle>plain</textStyle>
  727.         <textHeight>16</textHeight>
  728.         <name></name>
  729.         <script>-- Fancy: false-- Scroll: false-- Prot: false-- getsHit: false-- iType: edit</script>
  730.     </part>
  731.     <part>
  732.         <id>11</id>
  733.         <type>button</type>
  734.         <visible> <true /> </visible>
  735.         <reserved5> 0 </reserved5>
  736.         <reserved4> 0 </reserved4>
  737.         <reserved3> 0 </reserved3>
  738.         <reserved2> 0 </reserved2>
  739.         <reserved1> 0 </reserved1>
  740.         <enabled> <true /> </enabled>
  741.         <rect>
  742.             <left>88</left>
  743.             <top>90</top>
  744.             <right>168</right>
  745.             <bottom>108</bottom>
  746.         </rect>
  747.         <style>roundrect</style>
  748.         <showName> <true /> </showName>
  749.         <highlight> <false /> </highlight>
  750.         <autoHighlight> <false /> </autoHighlight>
  751.         <sharedHighlight> <true /> </sharedHighlight>
  752.         <family>0</family>
  753.         <titleWidth>0</titleWidth>
  754.         <icon>0</icon>
  755.         <textAlign>center</textAlign>
  756.         <font>Chicago</font>
  757.         <textSize>12</textSize>
  758.         <textStyle>plain</textStyle>
  759.         <name>LockText</name>
  760.         <script>-- getsHit: true-- iType: btn</script>
  761.     </part>
  762.     <content>
  763.         <layer>background</layer>
  764.         <id>48</id>
  765.         <text>80,80,304,2802054trueunHit,420Float</text>
  766.     </content>
  767.     <content>
  768.         <layer>background</layer>
  769.         <id>20</id>
  770.         <text>Inactivator</text>
  771.     </content>
  772.     <content>
  773.         <layer>background</layer>
  774.         <id>28</id>
  775.         <text>cd btn id 1cd btn id 2cd btn id 9cd fld id 3cd fld id 5cd fld id 8cd fld id 10cd fld id 6cd btn id 11</text>
  776.     </content>
  777.     <content>
  778.         <layer>background</layer>
  779.         <id>36</id>
  780.         <text>Button "OK"Button "Cancel"Button "Inactivate"List "One"Styled Editable Text ""PopUp "Red"Editable Text ""Static Text "Popup:"Button "LockText"</text>
  781.     </content>
  782.     <content>
  783.         <layer>card</layer>
  784.         <id>3</id>
  785.         <text>OneTwoThreeFourFiveSixSevenEightNine</text>
  786.     </content>
  787.     <content>
  788.         <layer>card</layer>
  789.         <id>6</id>
  790.         <text>Popup:</text>
  791.     </content>
  792.     <content>
  793.         <layer>card</layer>
  794.         <id>8</id>
  795.         <text>RedGreenBlueOrangeWhiteBlackPink</text>
  796.     </content>
  797.     <content>
  798.         <layer>background</layer>
  799.         <id>83</id>
  800.         <text>false</text>
  801.     </content>
  802.     <content>
  803.         <layer>background</layer>
  804.         <id>80</id>
  805.         <text>This extremely ugly dialog illustrates two rather important features which where included at the last moment.LockText and UnlockText are commands in dChanger which change styled text from static to editable or visa-versa.Inactivate and Activate are commands in dChanger which gray-out its such that they may not be clicked on or typed into. The types of items which may be inactivated are; lists, popups and styled text. (These are in addition to buttons and controls which have always had this ability). Further details are available in the Help window.</text>
  806.     </content>
  807.     <name>Inactivator</name>
  808.     <script>on unHit dialog, itemHit, partHitglobal actBtn,lockText-- Created on: Tuesday, April 17, 1990if itemHit = 0 then -- Initialize dialogput empty into actBtnput empty into lockTextelse if itemHit = 1 then -- Button "OK"else if itemHit = 2 then -- Button "Cancel"else if itemHit = 3 then -- Button "Inactivate"if actBtn is empty thendChanger dialog,"3‚ó䬆Activate¬†","4‚óäinactivate","5‚óäinactivate","6‚óäinactivate"put "inact" into actBtnelsedChanger dialog,"3‚ó䬆Inactivate¬†","4‚óäactivate","5‚óäactivate","6‚óäactivate"put empty into actBtnend ifelse if itemHit = 4 then -- List "One"else if itemHit = 5 then -- Styled Editable Text ""else if itemHit = 6 then -- PopUp "Red"else if itemHit = 9 then -- Button "LockText"if LockText is empty thendChanger dialog,"9‚ó䬆UnlockText¬†","5‚óäLockText"put "locked" into lockTextelsedChanger dialog,"9‚ó䬆LockText¬†","5‚óäUnLockText"put empty into lockTextend ifend ifend unHit</script>
  809. </card>
  810.  
  811.  
  812. card_6022.xml
  813. <?xml version="1.0" encoding="utf-8" ?>
  814. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  815. <card>
  816.     <id>6022</id>
  817.     <filler1>0</filler1>
  818.     <cantDelete> <false /> </cantDelete>
  819.     <showPict> <true /> </showPict>
  820.     <dontSearch> <false /> </dontSearch>
  821.     <owner>2662</owner>
  822.     <link rel="stylesheet" type="text/css" href="stylesheet_6778.css" />
  823.     <part>
  824.         <id>14</id>
  825.         <type>field</type>
  826.         <visible> <true /> </visible>
  827.         <dontWrap> <false /> </dontWrap>
  828.         <dontSearch> <false /> </dontSearch>
  829.         <sharedText> <false /> </sharedText>
  830.         <fixedLineHeight> <true /> </fixedLineHeight>
  831.         <autoTab> <false /> </autoTab>
  832.         <lockText> <true /> </lockText>
  833.         <rect>
  834.             <left>202</left>
  835.             <top>273</top>
  836.             <right>396</right>
  837.             <bottom>274</bottom>
  838.         </rect>
  839.         <style>rectangle</style>
  840.         <autoSelect> <false /> </autoSelect>
  841.         <showLines> <false /> </showLines>
  842.         <wideMargins> <false /> </wideMargins>
  843.         <multipleLines> <false /> </multipleLines>
  844.         <reservedFamily> 0 </reservedFamily>
  845.         <titleWidth>0</titleWidth>
  846.         <icon>0</icon>
  847.         <textAlign>left</textAlign>
  848.         <font>Geneva</font>
  849.         <textSize>12</textSize>
  850.         <textStyle>plain</textStyle>
  851.         <textHeight>16</textHeight>
  852.         <name></name>
  853.         <script>-- logic: Push-- bMode: Copy-- grid: 0,0-- bFill: None-- bPen: Gray-- getsHit: false-- iType: user-- uType: box</script>
  854.     </part>
  855.     <part>
  856.         <id>13</id>
  857.         <type>field</type>
  858.         <visible> <true /> </visible>
  859.         <dontWrap> <false /> </dontWrap>
  860.         <dontSearch> <false /> </dontSearch>
  861.         <sharedText> <false /> </sharedText>
  862.         <fixedLineHeight> <true /> </fixedLineHeight>
  863.         <autoTab> <false /> </autoTab>
  864.         <lockText> <true /> </lockText>
  865.         <rect>
  866.             <left>64</left>
  867.             <top>153</top>
  868.             <right>181</right>
  869.             <bottom>205</bottom>
  870.         </rect>
  871.         <style>rectangle</style>
  872.         <autoSelect> <false /> </autoSelect>
  873.         <showLines> <false /> </showLines>
  874.         <wideMargins> <false /> </wideMargins>
  875.         <multipleLines> <false /> </multipleLines>
  876.         <reservedFamily> 0 </reservedFamily>
  877.         <titleWidth>0</titleWidth>
  878.         <icon>0</icon>
  879.         <textAlign>left</textAlign>
  880.         <font>Geneva</font>
  881.         <textSize>12</textSize>
  882.         <textStyle>plain</textStyle>
  883.         <textHeight>16</textHeight>
  884.         <name> Style: </name>
  885.         <script>-- logic: Push-- bMode: Copy-- grid: 0,0-- bFill: None-- bPen: Black-- getsHit: false-- iType: user-- uType: box</script>
  886.     </part>
  887.     <part>
  888.         <id>1</id>
  889.         <type>button</type>
  890.         <visible> <true /> </visible>
  891.         <reserved5> 0 </reserved5>
  892.         <reserved4> 0 </reserved4>
  893.         <reserved3> 0 </reserved3>
  894.         <reserved2> 0 </reserved2>
  895.         <reserved1> 0 </reserved1>
  896.         <enabled> <true /> </enabled>
  897.         <rect>
  898.             <left>268</left>
  899.             <top>281</top>
  900.             <right>328</right>
  901.             <bottom>299</bottom>
  902.         </rect>
  903.         <style>roundrect</style>
  904.         <showName> <true /> </showName>
  905.         <highlight> <false /> </highlight>
  906.         <autoHighlight> <false /> </autoHighlight>
  907.         <sharedHighlight> <true /> </sharedHighlight>
  908.         <family>0</family>
  909.         <titleWidth>0</titleWidth>
  910.         <icon>0</icon>
  911.         <textAlign>center</textAlign>
  912.         <font>Chicago</font>
  913.         <textSize>12</textSize>
  914.         <textStyle>plain</textStyle>
  915.         <name>OK</name>
  916.         <script>-- getsHit: True-- iType: btn</script>
  917.     </part>
  918.     <part>
  919.         <id>2</id>
  920.         <type>button</type>
  921.         <visible> <true /> </visible>
  922.         <reserved5> 0 </reserved5>
  923.         <reserved4> 0 </reserved4>
  924.         <reserved3> 0 </reserved3>
  925.         <reserved2> 0 </reserved2>
  926.         <reserved1> 0 </reserved1>
  927.         <enabled> <true /> </enabled>
  928.         <rect>
  929.             <left>335</left>
  930.             <top>281</top>
  931.             <right>395</right>
  932.             <bottom>299</bottom>
  933.         </rect>
  934.         <style>roundrect</style>
  935.         <showName> <true /> </showName>
  936.         <highlight> <false /> </highlight>
  937.         <autoHighlight> <false /> </autoHighlight>
  938.         <sharedHighlight> <true /> </sharedHighlight>
  939.         <family>0</family>
  940.         <titleWidth>0</titleWidth>
  941.         <icon>0</icon>
  942.         <textAlign>center</textAlign>
  943.         <font>Chicago</font>
  944.         <textSize>12</textSize>
  945.         <textStyle>plain</textStyle>
  946.         <name>Cancel</name>
  947.         <script>-- getsHit: True-- iType: btn</script>
  948.     </part>
  949.     <part>
  950.         <id>3</id>
  951.         <type>button</type>
  952.         <visible> <true /> </visible>
  953.         <reserved5> 0 </reserved5>
  954.         <reserved4> 0 </reserved4>
  955.         <reserved3> 0 </reserved3>
  956.         <reserved2> 0 </reserved2>
  957.         <reserved1> 0 </reserved1>
  958.         <enabled> <true /> </enabled>
  959.         <rect>
  960.             <left>202</left>
  961.             <top>281</top>
  962.             <right>262</right>
  963.             <bottom>299</bottom>
  964.         </rect>
  965.         <style>roundrect</style>
  966.         <showName> <true /> </showName>
  967.         <highlight> <false /> </highlight>
  968.         <autoHighlight> <false /> </autoHighlight>
  969.         <sharedHighlight> <true /> </sharedHighlight>
  970.         <family>0</family>
  971.         <titleWidth>0</titleWidth>
  972.         <icon>0</icon>
  973.         <textAlign>center</textAlign>
  974.         <font>Chicago</font>
  975.         <textSize>12</textSize>
  976.         <textStyle>plain</textStyle>
  977.         <name>Motto‚Ķ</name>
  978.         <script>-- getsHit: True-- iType: btn</script>
  979.     </part>
  980.     <part>
  981.         <id>4</id>
  982.         <type>button</type>
  983.         <visible> <true /> </visible>
  984.         <reserved5> 0 </reserved5>
  985.         <reserved4> 0 </reserved4>
  986.         <reserved3> 0 </reserved3>
  987.         <reserved2> 0 </reserved2>
  988.         <reserved1> 0 </reserved1>
  989.         <enabled> <true /> </enabled>
  990.         <rect>
  991.             <left>70</left>
  992.             <top>165</top>
  993.             <right>167</right>
  994.             <bottom>181</bottom>
  995.         </rect>
  996.         <style>radiobutton</style>
  997.         <showName> <true /> </showName>
  998.         <highlight> <false /> </highlight>
  999.         <autoHighlight> <false /> </autoHighlight>
  1000.         <sharedHighlight> <true /> </sharedHighlight>
  1001.         <family>0</family>
  1002.         <titleWidth>0</titleWidth>
  1003.         <icon>0</icon>
  1004.         <textAlign>center</textAlign>
  1005.         <font>Chicago</font>
  1006.         <textSize>12</textSize>
  1007.         <textStyle>plain</textStyle>
  1008.         <name>Deep Disher</name>
  1009.         <script>-- getsHit: True-- iType: rad</script>
  1010.     </part>
  1011.     <part>
  1012.         <id>5</id>
  1013.         <type>button</type>
  1014.         <visible> <true /> </visible>
  1015.         <reserved5> 0 </reserved5>
  1016.         <reserved4> 0 </reserved4>
  1017.         <reserved3> 0 </reserved3>
  1018.         <reserved2> 0 </reserved2>
  1019.         <reserved1> 0 </reserved1>
  1020.         <enabled> <true /> </enabled>
  1021.         <rect>
  1022.             <left>70</left>
  1023.             <top>183</top>
  1024.             <right>173</right>
  1025.             <bottom>199</bottom>
  1026.         </rect>
  1027.         <style>radiobutton</style>
  1028.         <showName> <true /> </showName>
  1029.         <highlight> <false /> </highlight>
  1030.         <autoHighlight> <false /> </autoHighlight>
  1031.         <sharedHighlight> <true /> </sharedHighlight>
  1032.         <family>0</family>
  1033.         <titleWidth>0</titleWidth>
  1034.         <icon>0</icon>
  1035.         <textAlign>center</textAlign>
  1036.         <font>Chicago</font>
  1037.         <textSize>12</textSize>
  1038.         <textStyle>plain</textStyle>
  1039.         <name>Thin‚Äôn Crispy</name>
  1040.         <script>-- getsHit: True-- iType: rad</script>
  1041.     </part>
  1042.     <part>
  1043.         <id>6</id>
  1044.         <type>button</type>
  1045.         <visible> <true /> </visible>
  1046.         <reserved5> 0 </reserved5>
  1047.         <reserved4> 0 </reserved4>
  1048.         <reserved3> 0 </reserved3>
  1049.         <reserved2> 0 </reserved2>
  1050.         <reserved1> 0 </reserved1>
  1051.         <enabled> <true /> </enabled>
  1052.         <rect>
  1053.             <left>216</left>
  1054.             <top>246</top>
  1055.             <right>341</right>
  1056.             <bottom>262</bottom>
  1057.         </rect>
  1058.         <style>checkbox</style>
  1059.         <showName> <true /> </showName>
  1060.         <highlight> <false /> </highlight>
  1061.         <autoHighlight> <false /> </autoHighlight>
  1062.         <sharedHighlight> <true /> </sharedHighlight>
  1063.         <family>0</family>
  1064.         <titleWidth>0</titleWidth>
  1065.         <icon>0</icon>
  1066.         <textAlign>center</textAlign>
  1067.         <font>Chicago</font>
  1068.         <textSize>12</textSize>
  1069.         <textStyle>plain</textStyle>
  1070.         <name>Home Deliveries</name>
  1071.         <script>-- getsHit: True-- iType: chk</script>
  1072.     </part>
  1073.     <part>
  1074.         <id>7</id>
  1075.         <type>field</type>
  1076.         <visible> <true /> </visible>
  1077.         <dontWrap> <false /> </dontWrap>
  1078.         <dontSearch> <false /> </dontSearch>
  1079.         <sharedText> <false /> </sharedText>
  1080.         <fixedLineHeight> <true /> </fixedLineHeight>
  1081.         <autoTab> <false /> </autoTab>
  1082.         <lockText> <true /> </lockText>
  1083.         <rect>
  1084.             <left>205</left>
  1085.             <top>216</top>
  1086.             <right>397</right>
  1087.             <bottom>238</bottom>
  1088.         </rect>
  1089.         <style>rectangle</style>
  1090.         <autoSelect> <false /> </autoSelect>
  1091.         <showLines> <false /> </showLines>
  1092.         <wideMargins> <false /> </wideMargins>
  1093.         <multipleLines> <false /> </multipleLines>
  1094.         <reservedFamily> 0 </reservedFamily>
  1095.         <titleWidth>0</titleWidth>
  1096.         <icon>0</icon>
  1097.         <textAlign>left</textAlign>
  1098.         <font>Chicago</font>
  1099.         <textSize>12</textSize>
  1100.         <textStyle>plain</textStyle>
  1101.         <textHeight>16</textHeight>
  1102.         <name></name>
  1103.         <script>-- Prot: false-- Scroll: false-- Fancy: false-- getsHit: false-- iType: edit</script>
  1104.     </part>
  1105.     <part>
  1106.         <id>8</id>
  1107.         <type>button</type>
  1108.         <visible> <true /> </visible>
  1109.         <reserved5> 0 </reserved5>
  1110.         <reserved4> 0 </reserved4>
  1111.         <reserved3> 0 </reserved3>
  1112.         <reserved2> 0 </reserved2>
  1113.         <reserved1> 0 </reserved1>
  1114.         <enabled> <true /> </enabled>
  1115.         <rect>
  1116.             <left>255</left>
  1117.             <top>135</top>
  1118.             <right>287</right>
  1119.             <bottom>167</bottom>
  1120.         </rect>
  1121.         <style>opaque</style>
  1122.         <showName> <false /> </showName>
  1123.         <highlight> <false /> </highlight>
  1124.         <autoHighlight> <false /> </autoHighlight>
  1125.         <sharedHighlight> <true /> </sharedHighlight>
  1126.         <family>0</family>
  1127.         <titleWidth>0</titleWidth>
  1128.         <icon>20086</icon>
  1129.         <textAlign>center</textAlign>
  1130.         <font>Chicago</font>
  1131.         <textSize>12</textSize>
  1132.         <textStyle>plain</textStyle>
  1133.         <name>24697</name>
  1134.         <script>-- logic: Push-- grid: 0,0-- getsHit: false-- iType: icon</script>
  1135.     </part>
  1136.     <part>
  1137.         <id>9</id>
  1138.         <type>button</type>
  1139.         <visible> <true /> </visible>
  1140.         <reserved5> 0 </reserved5>
  1141.         <reserved4> 0 </reserved4>
  1142.         <reserved3> 0 </reserved3>
  1143.         <reserved2> 0 </reserved2>
  1144.         <reserved1> 0 </reserved1>
  1145.         <enabled> <true /> </enabled>
  1146.         <rect>
  1147.             <left>303</left>
  1148.             <top>73</top>
  1149.             <right>398</right>
  1150.             <bottom>155</bottom>
  1151.         </rect>
  1152.         <style>rectangle</style>
  1153.         <showName> <false /> </showName>
  1154.         <highlight> <false /> </highlight>
  1155.         <autoHighlight> <false /> </autoHighlight>
  1156.         <sharedHighlight> <true /> </sharedHighlight>
  1157.         <family>0</family>
  1158.         <titleWidth>0</titleWidth>
  1159.         <icon>0</icon>
  1160.         <textAlign>center</textAlign>
  1161.         <font>Chicago</font>
  1162.         <textSize>12</textSize>
  1163.         <textStyle>plain</textStyle>
  1164.         <name>23011</name>
  1165.         <script>-- logic: Push-- grid: 2,2-- getsHit: true-- iType: picton mouseUpshowPictend mouseUpon mouseDownshowPictpass mouseDownend mouseDown</script>
  1166.     </part>
  1167.     <part>
  1168.         <id>10</id>
  1169.         <type>field</type>
  1170.         <visible> <true /> </visible>
  1171.         <dontWrap> <false /> </dontWrap>
  1172.         <dontSearch> <false /> </dontSearch>
  1173.         <sharedText> <false /> </sharedText>
  1174.         <fixedLineHeight> <true /> </fixedLineHeight>
  1175.         <autoTab> <false /> </autoTab>
  1176.         <lockText> <true /> </lockText>
  1177.         <rect>
  1178.             <left>64</left>
  1179.             <top>234</top>
  1180.             <right>180</right>
  1181.             <bottom>301</bottom>
  1182.         </rect>
  1183.         <style>scrolling</style>
  1184.         <autoSelect> <false /> </autoSelect>
  1185.         <showLines> <false /> </showLines>
  1186.         <wideMargins> <false /> </wideMargins>
  1187.         <multipleLines> <false /> </multipleLines>
  1188.         <reservedFamily> 0 </reservedFamily>
  1189.         <titleWidth>0</titleWidth>
  1190.         <icon>0</icon>
  1191.         <textAlign>left</textAlign>
  1192.         <font>Geneva</font>
  1193.         <textSize>10</textSize>
  1194.         <textStyle>plain</textStyle>
  1195.         <textHeight>13</textHeight>
  1196.         <name></name>
  1197.         <script>-- getsHit: True-- iType: user-- uType: list</script>
  1198.     </part>
  1199.     <part>
  1200.         <id>11</id>
  1201.         <type>field</type>
  1202.         <visible> <true /> </visible>
  1203.         <dontWrap> <false /> </dontWrap>
  1204.         <dontSearch> <false /> </dontSearch>
  1205.         <sharedText> <false /> </sharedText>
  1206.         <fixedLineHeight> <true /> </fixedLineHeight>
  1207.         <autoTab> <false /> </autoTab>
  1208.         <lockText> <true /> </lockText>
  1209.         <rect>
  1210.             <left>103</left>
  1211.             <top>111</top>
  1212.             <right>199</right>
  1213.             <bottom>129</bottom>
  1214.         </rect>
  1215.         <style>shadow</style>
  1216.         <autoSelect> <false /> </autoSelect>
  1217.         <showLines> <false /> </showLines>
  1218.         <wideMargins> <false /> </wideMargins>
  1219.         <multipleLines> <false /> </multipleLines>
  1220.         <reservedFamily> 0 </reservedFamily>
  1221.         <titleWidth>0</titleWidth>
  1222.         <icon>0</icon>
  1223.         <textAlign>left</textAlign>
  1224.         <font>Geneva</font>
  1225.         <textSize>12</textSize>
  1226.         <textStyle>plain</textStyle>
  1227.         <textHeight>16</textHeight>
  1228.         <name></name>
  1229.         <script>-- getsHit: True-- iType: user-- uType: pop</script>
  1230.     </part>
  1231.     <part>
  1232.         <id>12</id>
  1233.         <type>field</type>
  1234.         <visible> <true /> </visible>
  1235.         <dontWrap> <false /> </dontWrap>
  1236.         <dontSearch> <false /> </dontSearch>
  1237.         <sharedText> <false /> </sharedText>
  1238.         <fixedLineHeight> <true /> </fixedLineHeight>
  1239.         <autoTab> <false /> </autoTab>
  1240.         <lockText> <true /> </lockText>
  1241.         <rect>
  1242.             <left>55</left>
  1243.             <top>66</top>
  1244.             <right>284</right>
  1245.             <bottom>89</bottom>
  1246.         </rect>
  1247.         <style>opaque</style>
  1248.         <autoSelect> <false /> </autoSelect>
  1249.         <showLines> <false /> </showLines>
  1250.         <wideMargins> <false /> </wideMargins>
  1251.         <multipleLines> <false /> </multipleLines>
  1252.         <reservedFamily> 0 </reservedFamily>
  1253.         <titleWidth>0</titleWidth>
  1254.         <icon>0</icon>
  1255.         <textAlign>left</textAlign>
  1256.         <font>Palatino</font>
  1257.         <textSize>18</textSize>
  1258.         <textStyle>italic</textStyle>
  1259.         <textStyle>bold</textStyle>
  1260.         <textHeight>24</textHeight>
  1261.         <name></name>
  1262.         <script>-- Prot: false-- Scroll: false-- Fancy: true-- getsHit: false-- iType: stat</script>
  1263.     </part>
  1264.     <part>
  1265.         <id>15</id>
  1266.         <type>field</type>
  1267.         <visible> <true /> </visible>
  1268.         <dontWrap> <false /> </dontWrap>
  1269.         <dontSearch> <false /> </dontSearch>
  1270.         <sharedText> <false /> </sharedText>
  1271.         <fixedLineHeight> <true /> </fixedLineHeight>
  1272.         <autoTab> <false /> </autoTab>
  1273.         <lockText> <true /> </lockText>
  1274.         <rect>
  1275.             <left>64</left>
  1276.             <top>111</top>
  1277.             <right>103</right>
  1278.             <bottom>127</bottom>
  1279.         </rect>
  1280.         <style>opaque</style>
  1281.         <autoSelect> <false /> </autoSelect>
  1282.         <showLines> <false /> </showLines>
  1283.         <wideMargins> <false /> </wideMargins>
  1284.         <multipleLines> <false /> </multipleLines>
  1285.         <reservedFamily> 0 </reservedFamily>
  1286.         <titleWidth>0</titleWidth>
  1287.         <icon>0</icon>
  1288.         <textAlign>left</textAlign>
  1289.         <font>Chicago</font>
  1290.         <textSize>12</textSize>
  1291.         <textStyle>plain</textStyle>
  1292.         <textHeight>14</textHeight>
  1293.         <name></name>
  1294.         <script>-- Scroll: false-- Fancy: false-- getsHit: False-- iType: stat</script>
  1295.     </part>
  1296.     <part>
  1297.         <id>16</id>
  1298.         <type>field</type>
  1299.         <visible> <true /> </visible>
  1300.         <dontWrap> <false /> </dontWrap>
  1301.         <dontSearch> <false /> </dontSearch>
  1302.         <sharedText> <false /> </sharedText>
  1303.         <fixedLineHeight> <true /> </fixedLineHeight>
  1304.         <autoTab> <false /> </autoTab>
  1305.         <lockText> <true /> </lockText>
  1306.         <rect>
  1307.             <left>65</left>
  1308.             <top>218</top>
  1309.             <right>136</right>
  1310.             <bottom>234</bottom>
  1311.         </rect>
  1312.         <style>opaque</style>
  1313.         <autoSelect> <false /> </autoSelect>
  1314.         <showLines> <false /> </showLines>
  1315.         <wideMargins> <false /> </wideMargins>
  1316.         <multipleLines> <false /> </multipleLines>
  1317.         <reservedFamily> 0 </reservedFamily>
  1318.         <titleWidth>0</titleWidth>
  1319.         <icon>0</icon>
  1320.         <textAlign>left</textAlign>
  1321.         <font>Chicago</font>
  1322.         <textSize>12</textSize>
  1323.         <textStyle>plain</textStyle>
  1324.         <textHeight>14</textHeight>
  1325.         <name></name>
  1326.         <script>-- Prot: false-- Scroll: false-- Fancy: false-- getsHit: false-- iType: stat</script>
  1327.     </part>
  1328.     <part>
  1329.         <id>17</id>
  1330.         <type>field</type>
  1331.         <visible> <true /> </visible>
  1332.         <dontWrap> <false /> </dontWrap>
  1333.         <dontSearch> <false /> </dontSearch>
  1334.         <sharedText> <false /> </sharedText>
  1335.         <fixedLineHeight> <true /> </fixedLineHeight>
  1336.         <autoTab> <false /> </autoTab>
  1337.         <lockText> <true /> </lockText>
  1338.         <rect>
  1339.             <left>205</left>
  1340.             <top>200</top>
  1341.             <right>256</right>
  1342.             <bottom>216</bottom>
  1343.         </rect>
  1344.         <style>opaque</style>
  1345.         <autoSelect> <false /> </autoSelect>
  1346.         <showLines> <false /> </showLines>
  1347.         <wideMargins> <false /> </wideMargins>
  1348.         <multipleLines> <false /> </multipleLines>
  1349.         <reservedFamily> 0 </reservedFamily>
  1350.         <titleWidth>0</titleWidth>
  1351.         <icon>0</icon>
  1352.         <textAlign>left</textAlign>
  1353.         <font>Chicago</font>
  1354.         <textSize>12</textSize>
  1355.         <textStyle>plain</textStyle>
  1356.         <textHeight>14</textHeight>
  1357.         <name></name>
  1358.         <script>-- Scroll: false-- Fancy: false-- getsHit: False-- iType: stat</script>
  1359.     </part>
  1360.     <content>
  1361.         <layer>background</layer>
  1362.         <id>48</id>
  1363.         <text>54,65,405,3061falseexHit,592errHitModal</text>
  1364.     </content>
  1365.     <content>
  1366.         <layer>background</layer>
  1367.         <id>20</id>
  1368.         <text>Example</text>
  1369.     </content>
  1370.     <content>
  1371.         <layer>card</layer>
  1372.         <id>15</id>
  1373.         <text>Size:</text>
  1374.     </content>
  1375.     <content>
  1376.         <layer>card</layer>
  1377.         <id>16</id>
  1378.         <text>Toppings:</text>
  1379.     </content>
  1380.     <content>
  1381.         <layer>card</layer>
  1382.         <id>17</id>
  1383.         <text>Name:</text>
  1384.     </content>
  1385.     <content>
  1386.         <layer>background</layer>
  1387.         <id>28</id>
  1388.         <text>cd btn id 1cd btn id 2cd btn id 3cd btn id 4cd btn id 5cd btn id 6cd fld id 7cd btn id 8cd btn id 9cd fld id 10cd fld id 11cd fld id 12cd fld id 13cd fld id 14cd fld id 15cd fld id 16cd fld id 17</text>
  1389.     </content>
  1390.     <content>
  1391.         <layer>background</layer>
  1392.         <id>36</id>
  1393.         <text>Button "OK"Button "Cancel"Button "Motto‚Ķ"Radio Button "Deep Disher"Radio Button "Thin‚Äôn Crispy"Checkbox "Home Deliveries"Editable Text "Example"Icon "24697"Picture "23011"List "Sausage"PopUp "Small"Styled Static Text "Peter‚Äôs Pizza Palace"Box (Black pen, None fill)  " Style: "Box (Gray pen, None fill)Static Text "Size:"Static Text "Toppings:"Static Text "Name:"</text>
  1394.     </content>
  1395.     <content>
  1396.         <layer>background</layer>
  1397.         <id>83</id>
  1398.         <text>false</text>
  1399.     </content>
  1400.     <content>
  1401.         <layer>background</layer>
  1402.         <id>80</id>
  1403.         <text>‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óäThis beautiful dialog is that which is used throughout the Help stack and in the manual.‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä‚óä</text>
  1404.     </content>
  1405.     <content>
  1406.         <layer>card</layer>
  1407.         <id>11</id>
  1408.         <text>SmallMediumLargeHuge</text>
  1409.     </content>
  1410.     <content>
  1411.         <layer>card</layer>
  1412.         <id>10</id>
  1413.         <text>SausagePepperoniMushroomsHamburgerOnionsLima Beans</text>
  1414.     </content>
  1415.     <content>
  1416.         <layer>background</layer>
  1417.         <id>30</id>
  1418.         <text>Message‚Ä¢thePalette‚Ä¢IndexMessage WatcherVariable WatcherScrollFatBitsPatternsToolsNew Dialog MakerExample</text>
  1419.     </content>
  1420.     <content>
  1421.         <layer>card</layer>
  1422.         <id>7</id>
  1423.         <text>Example</text>
  1424.     </content>
  1425.     <content>
  1426.         <layer>card</layer>
  1427.         <id>12</id>
  1428.         <text>Peter‚Äôs Pizza Palace</text>
  1429.     </content>
  1430.     <name>Example</name>
  1431.     <script>on exHit dialog, itemHit, partHit-- Created on: Sunday, January 6, 1991if itemHit = 0 then -- Initialize dialogdChanger dialog, "0‚óäColor Red","10‚óäColor Red"else if itemHit = 1 then -- Button "OK"else if itemHit = 2 then -- Button "Cancel"else if itemHit = 3 then -- Button "Motto‚Ķ"else if itemHit = 4 then -- Radio Button "Deep Disher"else if itemHit = 5 then -- Radio Button "Thin‚Äôn Crispy"else if itemHit = 6 then -- Checkbox "Home Deliveries"else if itemHit = 9 then -- Picture "23011"else if itemHit = 10 then -- List "Sausage"else if itemHit = 11 then -- PopUp "Small"end ifend exHiton errHit dialog, errID-- Called for all non-fatal errors.answer "Error encountered:&&"errIDend errHit</script>
  1432. </card>
  1433.  
  1434.  
  1435. card_5589.xml
  1436. <?xml version="1.0" encoding="utf-8" ?>
  1437. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1438. <card>
  1439.     <id>5589</id>
  1440.     <filler1>0</filler1>
  1441.     <cantDelete> <false /> </cantDelete>
  1442.     <showPict> <true /> </showPict>
  1443.     <dontSearch> <false /> </dontSearch>
  1444.     <owner>2662</owner>
  1445.     <link rel="stylesheet" type="text/css" href="stylesheet_6778.css" />
  1446.     <part>
  1447.         <id>9</id>
  1448.         <type>field</type>
  1449.         <visible> <true /> </visible>
  1450.         <dontWrap> <false /> </dontWrap>
  1451.         <dontSearch> <false /> </dontSearch>
  1452.         <sharedText> <false /> </sharedText>
  1453.         <fixedLineHeight> <true /> </fixedLineHeight>
  1454.         <autoTab> <false /> </autoTab>
  1455.         <lockText> <true /> </lockText>
  1456.         <rect>
  1457.             <left>150</left>
  1458.             <top>115</top>
  1459.             <right>351</right>
  1460.             <bottom>150</bottom>
  1461.         </rect>
  1462.         <style>opaque</style>
  1463.         <autoSelect> <false /> </autoSelect>
  1464.         <showLines> <false /> </showLines>
  1465.         <wideMargins> <false /> </wideMargins>
  1466.         <multipleLines> <false /> </multipleLines>
  1467.         <reservedFamily> 0 </reservedFamily>
  1468.         <titleWidth>0</titleWidth>
  1469.         <icon>0</icon>
  1470.         <textAlign>left</textAlign>
  1471.         <font>Chicago</font>
  1472.         <textSize>12</textSize>
  1473.         <textStyle>plain</textStyle>
  1474.         <textHeight>14</textHeight>
  1475.         <name></name>
  1476.         <script>-- Prot: false-- Fancy: false-- Scroll: false-- getsHit: false-- iType: stat</script>
  1477.     </part>
  1478.     <part>
  1479.         <id>10</id>
  1480.         <type>button</type>
  1481.         <visible> <true /> </visible>
  1482.         <reserved5> 0 </reserved5>
  1483.         <reserved4> 0 </reserved4>
  1484.         <reserved3> 0 </reserved3>
  1485.         <reserved2> 0 </reserved2>
  1486.         <reserved1> 0 </reserved1>
  1487.         <enabled> <true /> </enabled>
  1488.         <rect>
  1489.             <left>94</left>
  1490.             <top>112</top>
  1491.             <right>127</right>
  1492.             <bottom>176</bottom>
  1493.         </rect>
  1494.         <style>rectangle</style>
  1495.         <showName> <false /> </showName>
  1496.         <highlight> <false /> </highlight>
  1497.         <autoHighlight> <false /> </autoHighlight>
  1498.         <sharedHighlight> <true /> </sharedHighlight>
  1499.         <family>0</family>
  1500.         <titleWidth>0</titleWidth>
  1501.         <icon>0</icon>
  1502.         <textAlign>center</textAlign>
  1503.         <font>Chicago</font>
  1504.         <textSize>12</textSize>
  1505.         <textStyle>plain</textStyle>
  1506.         <name>27761</name>
  1507.         <script>-- getsHit: false-- logic: NA-- grid: 0,0-- iType: picton mouseUpshowPictend mouseUpon mouseDownshowPictpass mouseDownend mouseDown</script>
  1508.     </part>
  1509.     <part>
  1510.         <id>14</id>
  1511.         <type>button</type>
  1512.         <visible> <true /> </visible>
  1513.         <reserved5> 0 </reserved5>
  1514.         <reserved4> 0 </reserved4>
  1515.         <reserved3> 0 </reserved3>
  1516.         <reserved2> 0 </reserved2>
  1517.         <reserved1> 0 </reserved1>
  1518.         <enabled> <true /> </enabled>
  1519.         <rect>
  1520.             <left>142</left>
  1521.             <top>161</top>
  1522.             <right>342</right>
  1523.             <bottom>177</bottom>
  1524.         </rect>
  1525.         <style>rectangle</style>
  1526.         <showName> <true /> </showName>
  1527.         <highlight> <false /> </highlight>
  1528.         <autoHighlight> <false /> </autoHighlight>
  1529.         <sharedHighlight> <true /> </sharedHighlight>
  1530.         <family>0</family>
  1531.         <titleWidth>0</titleWidth>
  1532.         <icon>0</icon>
  1533.         <textAlign>center</textAlign>
  1534.         <font>Chicago</font>
  1535.         <textSize>12</textSize>
  1536.         <textStyle>plain</textStyle>
  1537.         <name>dkGray</name>
  1538.         <script>-- ID: 22313-- proc: ProgressBox-- max: 100-- min: 1-- init: 1-- getsHit: true-- iType: CNTL</script>
  1539.     </part>
  1540.     <content>
  1541.         <layer>background</layer>
  1542.         <id>48</id>
  1543.         <text>88,104,357,1871false,320Modal</text>
  1544.     </content>
  1545.     <content>
  1546.         <layer>background</layer>
  1547.         <id>28</id>
  1548.         <text>cd btn id 10cd fld id 9cd btn id 14</text>
  1549.     </content>
  1550.     <content>
  1551.         <layer>background</layer>
  1552.         <id>36</id>
  1553.         <text>Picture "27761"Static Text "Operation in progress‚Ķ please be patient‚Ķ"Custom ProgressBox "dkGray"</text>
  1554.     </content>
  1555.     <content>
  1556.         <layer>background</layer>
  1557.         <id>20</id>
  1558.         <text>!Progress</text>
  1559.     </content>
  1560.     <content>
  1561.         <layer>card</layer>
  1562.         <id>9</id>
  1563.         <text>Operation in progress‚Ķ please be patient‚Ķ</text>
  1564.     </content>
  1565.     <content>
  1566.         <layer>background</layer>
  1567.         <id>84</id>
  1568.         <text>-- Move this dialog down to see progress window.Progress "Starting"Progress 25Progress 50Progress 75Progress 100Progress "Dismiss"</text>
  1569.     </content>
  1570.     <content>
  1571.         <layer>background</layer>
  1572.         <id>83</id>
  1573.         <text>false</text>
  1574.     </content>
  1575.     <content>
  1576.         <layer>background</layer>
  1577.         <id>80</id>
  1578.         <text>This dialog has a single HyperTalk handler associated with it. It allows you to keep the user informed of the progress of a lengthy operation. It does this by displaying a dialog with some informative message and a bar graph to visually represent the progress. Unlike other examples which take the form of HyperTalk functions that 1) display a dialog, 2) interact with the user, 3) dismiss the dialog and 4) report on that interaction, this example does not interact with the user at all. Instead, this handler should be called periodically to reflect the progress of the underlying task being monitored. When that task is complete, the handler must be called again to dismiss the dialog. The handler has the form:Progress ¬´Text¬ª | ¬´Percent¬ª | DismissWhere the first and only argument may be either ¬´Text¬ª which is the text to be displayed in the dialog or ¬´Percent¬ª which is the percent complete for the task (between 1 and 100) or the word "Dismiss" which dismisses the dialog. Note: there is no difference between calling this handler to display the progress dialog for the first time or merely to update its contents -- the handler figures out what is the correct course of action.To experiment with this dialog, click the Show button on the tool palette.</text>
  1579.     </content>
  1580.     <content>
  1581.         <layer>background</layer>
  1582.         <id>30</id>
  1583.         <text>DLOG !ProgressDITL !ProgressPICT 27761CNTL 22313</text>
  1584.     </content>
  1585.     <name>!Progress</name>
  1586.     <script>on Progress txtOrPct-- This procedure handles the display, updating and dimissing of-- a progress dialog. It accepts either text or a number as its-- single parameter. The text is displayed as a message in the-- dialog. The number is reflected in the bar graph and should-- be between 1 and 100. As your script progresses, update one or-- both of these values to keep the user informed.-- If the word "Dismiss" is passed into this handler, the dialog will-- be dismissed.get txtOrPctconvert it to dateItems -- will only work if it is a numberif it is txtOrPct then put "2‚óä"&txtOrPct into txtOrPctelse put "3‚óä"&txtOrPct into txtOrPctget dContents("!Progress")if it <> 0 thenif txtOrPct is "2‚óäDismiss"then dChanger it,"0‚óäDismiss"else dChanger it, txtOrPctelseget Dialoger("!Progress"&return&"Orphan",txtOrPct,"3‚óäInactivate")end ifend Progress</script>
  1587. </card>
  1588.  
  1589.  
  1590. card_7353.xml
  1591. <?xml version="1.0" encoding="utf-8" ?>
  1592. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1593. <card>
  1594.     <id>7353</id>
  1595.     <filler1>0</filler1>
  1596.     <cantDelete> <false /> </cantDelete>
  1597.     <showPict> <true /> </showPict>
  1598.     <dontSearch> <false /> </dontSearch>
  1599.     <owner>2662</owner>
  1600.     <link rel="stylesheet" type="text/css" href="stylesheet_6778.css" />
  1601.     <part>
  1602.         <id>11</id>
  1603.         <type>field</type>
  1604.         <visible> <true /> </visible>
  1605.         <dontWrap> <false /> </dontWrap>
  1606.         <dontSearch> <false /> </dontSearch>
  1607.         <sharedText> <false /> </sharedText>
  1608.         <fixedLineHeight> <true /> </fixedLineHeight>
  1609.         <autoTab> <false /> </autoTab>
  1610.         <lockText> <true /> </lockText>
  1611.         <rect>
  1612.             <left>278</left>
  1613.             <top>236</top>
  1614.             <right>363</right>
  1615.             <bottom>237</bottom>
  1616.         </rect>
  1617.         <style>rectangle</style>
  1618.         <autoSelect> <false /> </autoSelect>
  1619.         <showLines> <false /> </showLines>
  1620.         <wideMargins> <false /> </wideMargins>
  1621.         <multipleLines> <false /> </multipleLines>
  1622.         <reservedFamily> 0 </reservedFamily>
  1623.         <titleWidth>0</titleWidth>
  1624.         <icon>0</icon>
  1625.         <textAlign>left</textAlign>
  1626.         <font>Geneva</font>
  1627.         <textSize>12</textSize>
  1628.         <textStyle>plain</textStyle>
  1629.         <textHeight>16</textHeight>
  1630.         <name></name>
  1631.         <script>-- bFill: None-- bPen: Black-- getsHit: True-- iType: user-- uType: box</script>
  1632.     </part>
  1633.     <part>
  1634.         <id>10</id>
  1635.         <type>field</type>
  1636.         <visible> <true /> </visible>
  1637.         <dontWrap> <false /> </dontWrap>
  1638.         <dontSearch> <false /> </dontSearch>
  1639.         <sharedText> <false /> </sharedText>
  1640.         <fixedLineHeight> <true /> </fixedLineHeight>
  1641.         <autoTab> <false /> </autoTab>
  1642.         <lockText> <true /> </lockText>
  1643.         <rect>
  1644.             <left>278</left>
  1645.             <top>154</top>
  1646.             <right>363</right>
  1647.             <bottom>155</bottom>
  1648.         </rect>
  1649.         <style>rectangle</style>
  1650.         <autoSelect> <false /> </autoSelect>
  1651.         <showLines> <false /> </showLines>
  1652.         <wideMargins> <false /> </wideMargins>
  1653.         <multipleLines> <false /> </multipleLines>
  1654.         <reservedFamily> 0 </reservedFamily>
  1655.         <titleWidth>0</titleWidth>
  1656.         <icon>0</icon>
  1657.         <textAlign>left</textAlign>
  1658.         <font>Geneva</font>
  1659.         <textSize>12</textSize>
  1660.         <textStyle>plain</textStyle>
  1661.         <textHeight>16</textHeight>
  1662.         <name></name>
  1663.         <script>-- bFill: None-- bPen: Black-- getsHit: True-- iType: user-- uType: box</script>
  1664.     </part>
  1665.     <part>
  1666.         <id>1</id>
  1667.         <type>button</type>
  1668.         <visible> <true /> </visible>
  1669.         <reserved5> 0 </reserved5>
  1670.         <reserved4> 0 </reserved4>
  1671.         <reserved3> 0 </reserved3>
  1672.         <reserved2> 0 </reserved2>
  1673.         <reserved1> 0 </reserved1>
  1674.         <enabled> <true /> </enabled>
  1675.         <rect>
  1676.             <left>280</left>
  1677.             <top>245</top>
  1678.             <right>360</right>
  1679.             <bottom>263</bottom>
  1680.         </rect>
  1681.         <style>roundrect</style>
  1682.         <showName> <true /> </showName>
  1683.         <highlight> <false /> </highlight>
  1684.         <autoHighlight> <false /> </autoHighlight>
  1685.         <sharedHighlight> <true /> </sharedHighlight>
  1686.         <family>0</family>
  1687.         <titleWidth>0</titleWidth>
  1688.         <icon>0</icon>
  1689.         <textAlign>center</textAlign>
  1690.         <font>Chicago</font>
  1691.         <textSize>12</textSize>
  1692.         <textStyle>plain</textStyle>
  1693.         <name>OK</name>
  1694.         <script>-- getsHit: True-- iType: btn</script>
  1695.     </part>
  1696.     <part>
  1697.         <id>2</id>
  1698.         <type>button</type>
  1699.         <visible> <true /> </visible>
  1700.         <reserved5> 0 </reserved5>
  1701.         <reserved4> 0 </reserved4>
  1702.         <reserved3> 0 </reserved3>
  1703.         <reserved2> 0 </reserved2>
  1704.         <reserved1> 0 </reserved1>
  1705.         <enabled> <true /> </enabled>
  1706.         <rect>
  1707.             <left>280</left>
  1708.             <top>268</top>
  1709.             <right>360</right>
  1710.             <bottom>286</bottom>
  1711.         </rect>
  1712.         <style>roundrect</style>
  1713.         <showName> <true /> </showName>
  1714.         <highlight> <false /> </highlight>
  1715.         <autoHighlight> <false /> </autoHighlight>
  1716.         <sharedHighlight> <true /> </sharedHighlight>
  1717.         <family>0</family>
  1718.         <titleWidth>0</titleWidth>
  1719.         <icon>0</icon>
  1720.         <textAlign>center</textAlign>
  1721.         <font>Chicago</font>
  1722.         <textSize>12</textSize>
  1723.         <textStyle>plain</textStyle>
  1724.         <name>Cancel</name>
  1725.         <script>-- getsHit: True-- iType: btn</script>
  1726.     </part>
  1727.     <part>
  1728.         <id>3</id>
  1729.         <type>field</type>
  1730.         <visible> <true /> </visible>
  1731.         <dontWrap> <false /> </dontWrap>
  1732.         <dontSearch> <false /> </dontSearch>
  1733.         <sharedText> <false /> </sharedText>
  1734.         <fixedLineHeight> <true /> </fixedLineHeight>
  1735.         <autoTab> <false /> </autoTab>
  1736.         <lockText> <true /> </lockText>
  1737.         <rect>
  1738.             <left>96</left>
  1739.             <top>255</top>
  1740.             <right>269</right>
  1741.             <bottom>277</bottom>
  1742.         </rect>
  1743.         <style>rectangle</style>
  1744.         <autoSelect> <false /> </autoSelect>
  1745.         <showLines> <false /> </showLines>
  1746.         <wideMargins> <false /> </wideMargins>
  1747.         <multipleLines> <false /> </multipleLines>
  1748.         <reservedFamily> 0 </reservedFamily>
  1749.         <titleWidth>0</titleWidth>
  1750.         <icon>0</icon>
  1751.         <textAlign>left</textAlign>
  1752.         <font>Chicago</font>
  1753.         <textSize>12</textSize>
  1754.         <textStyle>plain</textStyle>
  1755.         <textHeight>18</textHeight>
  1756.         <name></name>
  1757.         <script>-- Scroll: false-- getsHit: True-- iType: edit</script>
  1758.     </part>
  1759.     <part>
  1760.         <id>4</id>
  1761.         <type>field</type>
  1762.         <visible> <true /> </visible>
  1763.         <dontWrap> <false /> </dontWrap>
  1764.         <dontSearch> <false /> </dontSearch>
  1765.         <sharedText> <false /> </sharedText>
  1766.         <fixedLineHeight> <true /> </fixedLineHeight>
  1767.         <autoTab> <false /> </autoTab>
  1768.         <lockText> <true /> </lockText>
  1769.         <rect>
  1770.             <left>96</left>
  1771.             <top>106</top>
  1772.             <right>269</right>
  1773.             <bottom>253</bottom>
  1774.         </rect>
  1775.         <style>scrolling</style>
  1776.         <autoSelect> <false /> </autoSelect>
  1777.         <showLines> <false /> </showLines>
  1778.         <wideMargins> <false /> </wideMargins>
  1779.         <multipleLines> <false /> </multipleLines>
  1780.         <reservedFamily> 0 </reservedFamily>
  1781.         <titleWidth>0</titleWidth>
  1782.         <icon>0</icon>
  1783.         <textAlign>left</textAlign>
  1784.         <font>Geneva</font>
  1785.         <textSize>12</textSize>
  1786.         <textStyle>plain</textStyle>
  1787.         <textHeight>16</textHeight>
  1788.         <name></name>
  1789.         <script>-- getsHit: True-- iType: user-- uType: list</script>
  1790.     </part>
  1791.     <part>
  1792.         <id>5</id>
  1793.         <type>button</type>
  1794.         <visible> <true /> </visible>
  1795.         <reserved5> 0 </reserved5>
  1796.         <reserved4> 0 </reserved4>
  1797.         <reserved3> 0 </reserved3>
  1798.         <reserved2> 0 </reserved2>
  1799.         <reserved1> 0 </reserved1>
  1800.         <enabled> <true /> </enabled>
  1801.         <rect>
  1802.             <left>278</left>
  1803.             <top>163</top>
  1804.             <right>363</right>
  1805.             <bottom>181</bottom>
  1806.         </rect>
  1807.         <style>roundrect</style>
  1808.         <showName> <true /> </showName>
  1809.         <highlight> <false /> </highlight>
  1810.         <autoHighlight> <false /> </autoHighlight>
  1811.         <sharedHighlight> <true /> </sharedHighlight>
  1812.         <family>0</family>
  1813.         <titleWidth>0</titleWidth>
  1814.         <icon>0</icon>
  1815.         <textAlign>center</textAlign>
  1816.         <font>Chicago</font>
  1817.         <textSize>12</textSize>
  1818.         <textStyle>plain</textStyle>
  1819.         <name>Add</name>
  1820.         <script>-- getsHit: True-- iType: btn</script>
  1821.     </part>
  1822.     <part>
  1823.         <id>6</id>
  1824.         <type>button</type>
  1825.         <visible> <true /> </visible>
  1826.         <reserved5> 0 </reserved5>
  1827.         <reserved4> 0 </reserved4>
  1828.         <reserved3> 0 </reserved3>
  1829.         <reserved2> 0 </reserved2>
  1830.         <reserved1> 0 </reserved1>
  1831.         <enabled> <true /> </enabled>
  1832.         <rect>
  1833.             <left>278</left>
  1834.             <top>186</top>
  1835.             <right>363</right>
  1836.             <bottom>204</bottom>
  1837.         </rect>
  1838.         <style>roundrect</style>
  1839.         <showName> <true /> </showName>
  1840.         <highlight> <false /> </highlight>
  1841.         <autoHighlight> <false /> </autoHighlight>
  1842.         <sharedHighlight> <true /> </sharedHighlight>
  1843.         <family>0</family>
  1844.         <titleWidth>0</titleWidth>
  1845.         <icon>0</icon>
  1846.         <textAlign>center</textAlign>
  1847.         <font>Chicago</font>
  1848.         <textSize>12</textSize>
  1849.         <textStyle>plain</textStyle>
  1850.         <name>Replace</name>
  1851.         <script>-- getsHit: True-- iType: btn</script>
  1852.     </part>
  1853.     <part>
  1854.         <id>7</id>
  1855.         <type>button</type>
  1856.         <visible> <true /> </visible>
  1857.         <reserved5> 0 </reserved5>
  1858.         <reserved4> 0 </reserved4>
  1859.         <reserved3> 0 </reserved3>
  1860.         <reserved2> 0 </reserved2>
  1861.         <reserved1> 0 </reserved1>
  1862.         <enabled> <true /> </enabled>
  1863.         <rect>
  1864.             <left>278</left>
  1865.             <top>209</top>
  1866.             <right>363</right>
  1867.             <bottom>227</bottom>
  1868.         </rect>
  1869.         <style>roundrect</style>
  1870.         <showName> <true /> </showName>
  1871.         <highlight> <false /> </highlight>
  1872.         <autoHighlight> <false /> </autoHighlight>
  1873.         <sharedHighlight> <true /> </sharedHighlight>
  1874.         <family>0</family>
  1875.         <titleWidth>0</titleWidth>
  1876.         <icon>0</icon>
  1877.         <textAlign>center</textAlign>
  1878.         <font>Chicago</font>
  1879.         <textSize>12</textSize>
  1880.         <textStyle>plain</textStyle>
  1881.         <name>Delete</name>
  1882.         <script>-- getsHit: True-- iType: btn</script>
  1883.     </part>
  1884.     <part>
  1885.         <id>8</id>
  1886.         <type>button</type>
  1887.         <visible> <true /> </visible>
  1888.         <reserved5> 0 </reserved5>
  1889.         <reserved4> 0 </reserved4>
  1890.         <reserved3> 0 </reserved3>
  1891.         <reserved2> 0 </reserved2>
  1892.         <reserved1> 0 </reserved1>
  1893.         <enabled> <true /> </enabled>
  1894.         <rect>
  1895.             <left>278</left>
  1896.             <top>104</top>
  1897.             <right>363</right>
  1898.             <bottom>122</bottom>
  1899.         </rect>
  1900.         <style>roundrect</style>
  1901.         <showName> <true /> </showName>
  1902.         <highlight> <false /> </highlight>
  1903.         <autoHighlight> <false /> </autoHighlight>
  1904.         <sharedHighlight> <true /> </sharedHighlight>
  1905.         <family>0</family>
  1906.         <titleWidth>0</titleWidth>
  1907.         <icon>0</icon>
  1908.         <textAlign>center</textAlign>
  1909.         <font>Chicago</font>
  1910.         <textSize>12</textSize>
  1911.         <textStyle>plain</textStyle>
  1912.         <name>Up</name>
  1913.         <script>-- getsHit: True-- iType: btn</script>
  1914.     </part>
  1915.     <part>
  1916.         <id>9</id>
  1917.         <type>button</type>
  1918.         <visible> <true /> </visible>
  1919.         <reserved5> 0 </reserved5>
  1920.         <reserved4> 0 </reserved4>
  1921.         <reserved3> 0 </reserved3>
  1922.         <reserved2> 0 </reserved2>
  1923.         <reserved1> 0 </reserved1>
  1924.         <enabled> <true /> </enabled>
  1925.         <rect>
  1926.             <left>278</left>
  1927.             <top>127</top>
  1928.             <right>363</right>
  1929.             <bottom>145</bottom>
  1930.         </rect>
  1931.         <style>roundrect</style>
  1932.         <showName> <true /> </showName>
  1933.         <highlight> <false /> </highlight>
  1934.         <autoHighlight> <false /> </autoHighlight>
  1935.         <sharedHighlight> <true /> </sharedHighlight>
  1936.         <family>0</family>
  1937.         <titleWidth>0</titleWidth>
  1938.         <icon>0</icon>
  1939.         <textAlign>center</textAlign>
  1940.         <font>Chicago</font>
  1941.         <textSize>12</textSize>
  1942.         <textStyle>plain</textStyle>
  1943.         <name>Down</name>
  1944.         <script>-- getsHit: True-- iType: btn</script>
  1945.     </part>
  1946.     <part>
  1947.         <id>12</id>
  1948.         <type>field</type>
  1949.         <visible> <true /> </visible>
  1950.         <dontWrap> <false /> </dontWrap>
  1951.         <dontSearch> <false /> </dontSearch>
  1952.         <sharedText> <false /> </sharedText>
  1953.         <fixedLineHeight> <true /> </fixedLineHeight>
  1954.         <autoTab> <false /> </autoTab>
  1955.         <lockText> <true /> </lockText>
  1956.         <rect>
  1957.             <left>97</left>
  1958.             <top>90</top>
  1959.             <right>268</right>
  1960.             <bottom>106</bottom>
  1961.         </rect>
  1962.         <style>opaque</style>
  1963.         <autoSelect> <false /> </autoSelect>
  1964.         <showLines> <false /> </showLines>
  1965.         <wideMargins> <false /> </wideMargins>
  1966.         <multipleLines> <false /> </multipleLines>
  1967.         <reservedFamily> 0 </reservedFamily>
  1968.         <titleWidth>0</titleWidth>
  1969.         <icon>0</icon>
  1970.         <textAlign>left</textAlign>
  1971.         <font>Chicago</font>
  1972.         <textSize>12</textSize>
  1973.         <textStyle>plain</textStyle>
  1974.         <textHeight>14</textHeight>
  1975.         <name></name>
  1976.         <script>-- Fancy: false-- Scroll: false-- getsHit: False-- iType: stat</script>
  1977.     </part>
  1978.     <content>
  1979.         <layer>background</layer>
  1980.         <id>48</id>
  1981.         <text>86,79,374,2951falseModal</text>
  1982.     </content>
  1983.     <content>
  1984.         <layer>background</layer>
  1985.         <id>20</id>
  1986.         <text>!ListMaker</text>
  1987.     </content>
  1988.     <content>
  1989.         <layer>card</layer>
  1990.         <id>12</id>
  1991.         <text>^0</text>
  1992.     </content>
  1993.     <content>
  1994.         <layer>background</layer>
  1995.         <id>28</id>
  1996.         <text>cd btn id 1cd btn id 2cd fld id 3cd fld id 4cd btn id 5cd btn id 6cd btn id 7cd btn id 8cd btn id 9cd fld id 10cd fld id 11cd fld id 12</text>
  1997.     </content>
  1998.     <content>
  1999.         <layer>background</layer>
  2000.         <id>36</id>
  2001.         <text>Button "OK"Button "Cancel"Editable Text ""List ""Button "Add"Button "Replace"Button "Delete"Button "Up"Button "Down"Box (Black pen, None fill)Box (Black pen, None fill)Static Text "^0"</text>
  2002.     </content>
  2003.     <content>
  2004.         <layer>background</layer>
  2005.         <id>84</id>
  2006.         <text>Put MakeList("Ice cream flavors:")Put MakeList("Ice cream flavors:","Strawberry"&return&"Chocolate")</text>
  2007.     </content>
  2008.     <content>
  2009.         <layer>background</layer>
  2010.         <id>83</id>
  2011.         <text>false</text>
  2012.     </content>
  2013.     <content>
  2014.         <layer>background</layer>
  2015.         <id>80</id>
  2016.         <text>This dialog has a single HyperTalk function associated with it. This function displays a dialog which allows the user to build a list of things. While handy of its own right, this function also uses some advanced Dialoger techniques that will be of interest to expert users. The syntax of the function is:Get MakeList(¬´Prompt¬ª,¬´initialList¬ª)Where ¬´Prompt¬ª is the text to be displayed in the dialog and ¬´initialList¬ª is the initial list of items to be displayed (each separated by a return).MakeList returns the text of the list that is built in the dialog.To experiment with this dialog, click the Show button on the tool palette.</text>
  2017.     </content>
  2018.     <name>!ListMaker</name>
  2019.     <script>function makeList thePrompt, theList-- This function allows a user to modify a list-- or create an entirely new one-- the list is returned as the result of the functionglobal dList -- the list itself, used to communicate b/w the-- hit handler and this functionput return into CR-- set up the initial list as passed into the functionput theList into List1-- Now comes Dialoger!-- notice that we are putting the prompt text as replacement text-- we can do this since the DITL contains ^0 as the contents-- of the static text field above the list.-- Equivalently, we could have changed it in parameter 12.put Dialoger("!ListMaker"¬¨, thePrompt ¬¨, "0‚óäon makeListHit"¬¨, "4‚óäuserList Chicago,12,SingleSelection"  & CR & List1¬¨, "10‚óäuserBox Gray"¬¨, "11‚óäuserBox Gray"¬¨) into dResult-- If the user canceled, return nothingif first word of dResult is "Error:" thenanswer dResult with Cancelreturn emptyend ifreturn dListend makeListon makeListHit dialog,iglobal dListif i = 0 then-- initialization timedChanger dialog,"5‚óäDefault","6‚óäInactivate"¬¨, "7‚óäInactivate", "8‚óäInactivate","9‚óäInactivate"else if i = 1 then -- the OK button-- since dialoger will only return the line numbers of the lines-- selected in the list, we need to use dContents here to get-- the complete list, which we pass back using the global dListput dContents(dialog,5,"all") into dListelse if i = 2 then -- the Cancel buttonput empty into dListelse if i = 3 then -- the editable text area-- we need to make some adjustments to the buttonsadjBtns4List dialog,ielse if i = 4 then -- the list-- we need to put the contents of the line clicked into the-- editable text fieldget dContents(dialog,4,"alt")dChanger dialog,"3‚óä"&it & return & "select"adjBtns4List dialog,ielse if i = 5 then -- the Add button-- we need to add it to the list and select the text in the-- editable text area so that the user can simply type in the-- next one without having to select it firstput dContents(dialog,3) into txtput dContents(dialog,4) into lnif ln is empty then put 1000 into lndChanger dialog,"3‚óäSelect","4‚óäAdd"&&ln & return & txtelse if i = 6 then -- the Replace Button-- we simply need to replace the contents of the selected list line-- with what the user has typed into the editable text fieldput dContents(dialog,3) into txtput dContents(dialog,4) into lnif ln is empty thenbeepexit makeListHitend ifdChanger dialog,"3‚óäSelect","4‚óäReplace"&&ln & return & txtelse if i = 7 then -- the Delete button-- we need to delete the line from the list and then select the-- next in line so that the user can click delete againput dContents(dialog,3) into txtput dContents(dialog,4) into lnif ln is empty thenbeepexit makeListHitend ifdChanger dialog,"4‚óäDelete"&&ln & return & "Select"&&lnget dContents(dialog,4,"alt")dChanger dialog,"3‚óä"&it,"3‚óäSelect"adjBtns4List dialog,ielse if i = 8 then -- the Up button--  we simply need to exchange the two list lines-- the swap command automatically handles trying to move-- line 1 upget dContents(dialog,4)if it is empty thenbeepexit makeListHitend ifdChanger dialog,"4‚óäswap"&&it-1&","&it & return & "Select"&&it-1else if i = 9 then -- down button--  we simply need to exchange the two list lines-- the swap command automatically handles trying to move-- the last line downget dContents(dialog,4)if it is empty thenbeepexit makeListHitend ifdChanger dialog,"4‚óäswap"&&it&","&it+1 & return & "Select"&&it+1end ifend makeListHiton adjBtns4List dialog,i-- the proc is used to adjust the activation of the various push-- buttons in accordance with the state of the dialogget dContents(dialog,3)if it is empty thenif dContents(dialog,3) is emptythen dChanger dialog,"5‚óäInactivate","6‚óäInactivate","7‚óäInactivate","8‚óäInactivate","9‚óäInactivate"else dChanger dialog,"5‚óäInactivate","6‚óäInactivate","7‚óäActivate","8‚óäActivate","9‚óäActivate"elseif dContents(dialog,4) is emptythen dChanger dialog,"5‚óäActivate"&return&"Default","6‚óäInactivate","7‚óäInactivate","8‚óäInactivate","9‚óäInactivate"else dChanger dialog,"5‚óäActivate","6‚óäActivate"&return&"Default","7‚óäActivate","8‚óäActivate","9‚óäActivate"end ifend adjBtns4List</script>
  2020. </card>
  2021.  
  2022.  
  2023. card_7060.xml
  2024. <?xml version="1.0" encoding="utf-8" ?>
  2025. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2026. <card>
  2027.     <id>7060</id>
  2028.     <filler1>0</filler1>
  2029.     <cantDelete> <false /> </cantDelete>
  2030.     <showPict> <true /> </showPict>
  2031.     <dontSearch> <false /> </dontSearch>
  2032.     <owner>2662</owner>
  2033.     <link rel="stylesheet" type="text/css" href="stylesheet_6778.css" />
  2034.     <part>
  2035.         <id>4</id>
  2036.         <type>field</type>
  2037.         <visible> <true /> </visible>
  2038.         <dontWrap> <false /> </dontWrap>
  2039.         <dontSearch> <false /> </dontSearch>
  2040.         <sharedText> <false /> </sharedText>
  2041.         <fixedLineHeight> <true /> </fixedLineHeight>
  2042.         <autoTab> <false /> </autoTab>
  2043.         <lockText> <true /> </lockText>
  2044.         <rect>
  2045.             <left>97</left>
  2046.             <top>264</top>
  2047.             <right>367</right>
  2048.             <bottom>265</bottom>
  2049.         </rect>
  2050.         <style>rectangle</style>
  2051.         <autoSelect> <false /> </autoSelect>
  2052.         <showLines> <false /> </showLines>
  2053.         <wideMargins> <false /> </wideMargins>
  2054.         <multipleLines> <false /> </multipleLines>
  2055.         <reservedFamily> 0 </reservedFamily>
  2056.         <titleWidth>0</titleWidth>
  2057.         <icon>0</icon>
  2058.         <textAlign>left</textAlign>
  2059.         <font>Geneva</font>
  2060.         <textSize>12</textSize>
  2061.         <textStyle>plain</textStyle>
  2062.         <textHeight>16</textHeight>
  2063.         <name></name>
  2064.         <script>-- bMode: Copy-- bFill: None-- bPen: Gray-- getsHit: false-- iType: user-- uType: box</script>
  2065.     </part>
  2066.     <part>
  2067.         <id>1</id>
  2068.         <type>button</type>
  2069.         <visible> <true /> </visible>
  2070.         <reserved5> 0 </reserved5>
  2071.         <reserved4> 0 </reserved4>
  2072.         <reserved3> 0 </reserved3>
  2073.         <reserved2> 0 </reserved2>
  2074.         <reserved1> 0 </reserved1>
  2075.         <enabled> <true /> </enabled>
  2076.         <rect>
  2077.             <left>191</left>
  2078.             <top>274</top>
  2079.             <right>271</right>
  2080.             <bottom>292</bottom>
  2081.         </rect>
  2082.         <style>roundrect</style>
  2083.         <showName> <true /> </showName>
  2084.         <highlight> <false /> </highlight>
  2085.         <autoHighlight> <false /> </autoHighlight>
  2086.         <sharedHighlight> <true /> </sharedHighlight>
  2087.         <family>0</family>
  2088.         <titleWidth>0</titleWidth>
  2089.         <icon>0</icon>
  2090.         <textAlign>center</textAlign>
  2091.         <font>Chicago</font>
  2092.         <textSize>12</textSize>
  2093.         <textStyle>plain</textStyle>
  2094.         <name>OK</name>
  2095.         <script>-- getsHit: True-- iType: btn</script>
  2096.     </part>
  2097.     <part>
  2098.         <id>2</id>
  2099.         <type>button</type>
  2100.         <visible> <true /> </visible>
  2101.         <reserved5> 0 </reserved5>
  2102.         <reserved4> 0 </reserved4>
  2103.         <reserved3> 0 </reserved3>
  2104.         <reserved2> 0 </reserved2>
  2105.         <reserved1> 0 </reserved1>
  2106.         <enabled> <true /> </enabled>
  2107.         <rect>
  2108.             <left>285</left>
  2109.             <top>274</top>
  2110.             <right>365</right>
  2111.             <bottom>292</bottom>
  2112.         </rect>
  2113.         <style>roundrect</style>
  2114.         <showName> <true /> </showName>
  2115.         <highlight> <false /> </highlight>
  2116.         <autoHighlight> <false /> </autoHighlight>
  2117.         <sharedHighlight> <true /> </sharedHighlight>
  2118.         <family>0</family>
  2119.         <titleWidth>0</titleWidth>
  2120.         <icon>0</icon>
  2121.         <textAlign>center</textAlign>
  2122.         <font>Chicago</font>
  2123.         <textSize>12</textSize>
  2124.         <textStyle>plain</textStyle>
  2125.         <name>Cancel</name>
  2126.         <script>-- getsHit: True-- iType: btn</script>
  2127.     </part>
  2128.     <part>
  2129.         <id>3</id>
  2130.         <type>button</type>
  2131.         <visible> <true /> </visible>
  2132.         <reserved5> 0 </reserved5>
  2133.         <reserved4> 0 </reserved4>
  2134.         <reserved3> 0 </reserved3>
  2135.         <reserved2> 0 </reserved2>
  2136.         <reserved1> 0 </reserved1>
  2137.         <enabled> <true /> </enabled>
  2138.         <rect>
  2139.             <left>276</left>
  2140.             <top>55</top>
  2141.             <right>356</right>
  2142.             <bottom>73</bottom>
  2143.         </rect>
  2144.         <style>roundrect</style>
  2145.         <showName> <true /> </showName>
  2146.         <highlight> <false /> </highlight>
  2147.         <autoHighlight> <false /> </autoHighlight>
  2148.         <sharedHighlight> <true /> </sharedHighlight>
  2149.         <family>0</family>
  2150.         <titleWidth>0</titleWidth>
  2151.         <icon>0</icon>
  2152.         <textAlign>center</textAlign>
  2153.         <font>Chicago</font>
  2154.         <textSize>12</textSize>
  2155.         <textStyle>plain</textStyle>
  2156.         <name>Open‚Ķ</name>
  2157.         <script>-- getsHit: True-- iType: btn</script>
  2158.     </part>
  2159.     <part>
  2160.         <id>5</id>
  2161.         <type>field</type>
  2162.         <visible> <true /> </visible>
  2163.         <dontWrap> <false /> </dontWrap>
  2164.         <dontSearch> <false /> </dontSearch>
  2165.         <sharedText> <false /> </sharedText>
  2166.         <fixedLineHeight> <true /> </fixedLineHeight>
  2167.         <autoTab> <false /> </autoTab>
  2168.         <lockText> <true /> </lockText>
  2169.         <rect>
  2170.             <left>97</left>
  2171.             <top>80</top>
  2172.             <right>355</right>
  2173.             <bottom>246</bottom>
  2174.         </rect>
  2175.         <style>scrolling</style>
  2176.         <autoSelect> <false /> </autoSelect>
  2177.         <showLines> <false /> </showLines>
  2178.         <wideMargins> <false /> </wideMargins>
  2179.         <multipleLines> <false /> </multipleLines>
  2180.         <reservedFamily> 0 </reservedFamily>
  2181.         <titleWidth>0</titleWidth>
  2182.         <icon>0</icon>
  2183.         <textAlign>left</textAlign>
  2184.         <font>Geneva</font>
  2185.         <textSize>12</textSize>
  2186.         <textStyle>plain</textStyle>
  2187.         <textHeight>16</textHeight>
  2188.         <name></name>
  2189.         <script>-- getsHit: True-- iType: user-- uType: list</script>
  2190.     </part>
  2191.     <part>
  2192.         <id>6</id>
  2193.         <type>field</type>
  2194.         <visible> <true /> </visible>
  2195.         <dontWrap> <false /> </dontWrap>
  2196.         <dontSearch> <false /> </dontSearch>
  2197.         <sharedText> <false /> </sharedText>
  2198.         <fixedLineHeight> <true /> </fixedLineHeight>
  2199.         <autoTab> <false /> </autoTab>
  2200.         <lockText> <true /> </lockText>
  2201.         <rect>
  2202.             <left>104</left>
  2203.             <top>47</top>
  2204.             <right>272</right>
  2205.             <bottom>80</bottom>
  2206.         </rect>
  2207.         <style>opaque</style>
  2208.         <autoSelect> <false /> </autoSelect>
  2209.         <showLines> <false /> </showLines>
  2210.         <wideMargins> <false /> </wideMargins>
  2211.         <multipleLines> <false /> </multipleLines>
  2212.         <reservedFamily> 0 </reservedFamily>
  2213.         <titleWidth>0</titleWidth>
  2214.         <icon>0</icon>
  2215.         <textAlign>left</textAlign>
  2216.         <font>Chicago</font>
  2217.         <textSize>12</textSize>
  2218.         <textStyle>plain</textStyle>
  2219.         <textHeight>16</textHeight>
  2220.         <name></name>
  2221.         <script>-- Prot: false-- Fancy: false-- Scroll: false-- getsHit: false-- iType: stat-- uType: text</script>
  2222.     </part>
  2223.     <part>
  2224.         <id>7</id>
  2225.         <type>button</type>
  2226.         <visible> <true /> </visible>
  2227.         <reserved5> 0 </reserved5>
  2228.         <reserved4> 0 </reserved4>
  2229.         <reserved3> 0 </reserved3>
  2230.         <reserved2> 0 </reserved2>
  2231.         <reserved1> 0 </reserved1>
  2232.         <enabled> <true /> </enabled>
  2233.         <rect>
  2234.             <left>98</left>
  2235.             <top>274</top>
  2236.             <right>178</right>
  2237.             <bottom>292</bottom>
  2238.         </rect>
  2239.         <style>roundrect</style>
  2240.         <showName> <true /> </showName>
  2241.         <highlight> <false /> </highlight>
  2242.         <autoHighlight> <false /> </autoHighlight>
  2243.         <sharedHighlight> <true /> </sharedHighlight>
  2244.         <family>0</family>
  2245.         <titleWidth>0</titleWidth>
  2246.         <icon>0</icon>
  2247.         <textAlign>center</textAlign>
  2248.         <font>Chicago</font>
  2249.         <textSize>12</textSize>
  2250.         <textStyle>plain</textStyle>
  2251.         <name>New</name>
  2252.         <script>-- getsHit: True-- iType: btn</script>
  2253.     </part>
  2254.     <part>
  2255.         <id>8</id>
  2256.         <type>field</type>
  2257.         <visible> <true /> </visible>
  2258.         <dontWrap> <false /> </dontWrap>
  2259.         <dontSearch> <false /> </dontSearch>
  2260.         <sharedText> <false /> </sharedText>
  2261.         <fixedLineHeight> <true /> </fixedLineHeight>
  2262.         <autoTab> <false /> </autoTab>
  2263.         <lockText> <true /> </lockText>
  2264.         <rect>
  2265.             <left>104</left>
  2266.             <top>246</top>
  2267.             <right>351</right>
  2268.             <bottom>260</bottom>
  2269.         </rect>
  2270.         <style>opaque</style>
  2271.         <autoSelect> <false /> </autoSelect>
  2272.         <showLines> <false /> </showLines>
  2273.         <wideMargins> <false /> </wideMargins>
  2274.         <multipleLines> <false /> </multipleLines>
  2275.         <reservedFamily> 0 </reservedFamily>
  2276.         <titleWidth>0</titleWidth>
  2277.         <icon>0</icon>
  2278.         <textAlign>left</textAlign>
  2279.         <font>Geneva</font>
  2280.         <textSize>9</textSize>
  2281.         <textStyle>plain</textStyle>
  2282.         <textHeight>12</textHeight>
  2283.         <name></name>
  2284.         <script>-- Prot: false-- Fancy: true-- Scroll: false-- getsHit: false-- iType: stat-- uType: text</script>
  2285.     </part>
  2286.     <content>
  2287.         <layer>background</layer>
  2288.         <id>48</id>
  2289.         <text>88,44,376,3001falseModal</text>
  2290.     </content>
  2291.     <content>
  2292.         <layer>background</layer>
  2293.         <id>20</id>
  2294.         <text>!GetIcon</text>
  2295.     </content>
  2296.     <content>
  2297.         <layer>card</layer>
  2298.         <id>8</id>
  2299.         <text>Some Text</text>
  2300.     </content>
  2301.     <content>
  2302.         <layer>background</layer>
  2303.         <id>28</id>
  2304.         <text>cd btn id 1cd btn id 2cd btn id 3cd fld id 4cd fld id 5cd fld id 6cd btn id 7cd fld id 8</text>
  2305.     </content>
  2306.     <content>
  2307.         <layer>background</layer>
  2308.         <id>36</id>
  2309.         <text>Button "OK"Button "Cancel"Button "Open‚Ķ"Box (Gray pen, None fill)List ""Static Text "Icons"Button "New"Styled Static Text "Some Text"</text>
  2310.     </content>
  2311.     <content>
  2312.         <layer>card</layer>
  2313.         <id>6</id>
  2314.         <text>Icons</text>
  2315.     </content>
  2316.     <content>
  2317.         <layer>background</layer>
  2318.         <id>80</id>
  2319.         <text>This dialog has a HyperTalk function associated with it. It allows the user to choose an icon. This icon may be; 1) one of those initially displayed (those immediately available to this stack) or 2) from a stack explicitly opened by the user or 3) newly created by the user from a piece of card art. If needed, the icon is copied into the stack. The function takes the form: Put GetIcon(¬´Prompt¬ª) into IconIDWhere ¬´Prompt¬ª is the prompting message that appears above the list of icons.GetIcon returns the id of the icon selected by the user (or empty if none was).To experiment with this dialog, click the Show button on the tool palette.</text>
  2320.     </content>
  2321.     <content>
  2322.         <layer>background</layer>
  2323.         <id>84</id>
  2324.         <text>Put GetIcon("Select an icon below:")</text>
  2325.     </content>
  2326.     <content>
  2327.         <layer>background</layer>
  2328.         <id>83</id>
  2329.         <text>false</text>
  2330.     </content>
  2331.     <content>
  2332.         <layer>background</layer>
  2333.         <id>86</id>
  2334.         <text>XFCN openResForkXCMD closeResForkXFCN rInfo</text>
  2335.     </content>
  2336.     <name>!GetIcon</name>
  2337.     <script>function getIcon prompt-- This function returns the id of the icon selected by the user-- The icon may have been from this stack or from anywhere else-- It may even have been created in this function.global rID,fNameput return into CR-- ResIDList produces a list of the icon ids of the icons-- existing in this stack. Notes on its use appear in the-- Advances Note section of the helpput "userList icons" & CR & resIDList(stackFileName(),"ICON") into list1-- Time for Dialoger!put Dialoger("!GetIcon" & CR & "on getIconHit"¬¨, "4‚óäuserBox Gray"¬¨, "5‚óä"&List1¬¨,  "6‚óä"&prompt¬¨, "7‚óäDismiss"¬¨, "8‚óäStyledText geneva,9"¬¨) into dResultif first word of dResult is "Error:" thenanswer dResult with Cancelexit getIconelse if line 1 of dResult is not empty thenif rID is not empty then-- an icon had been selectedget char 8 to 32767 of (long name of this stack)delete last char of itif (fname is not empty) and (it <> fName) thenresCopyQuick fName,it,"ICON",rIDif first word of the result is "Error:" thenanswer result() with Cancelexit getIconelse if the result is not emptythen put the result into rIDend ifend ifreturn rIDelse if line 7 of dResult is not empty then-- We get to create a new icon!ask "Name for new icon:"if it is empty then exit getIcongo cdget iMaker("",it)return itend ifend getIconon getIconHit dialog,iglobal fNum,fName,rIDif i=0 then-- initialize all the globalsput empty into fNum -- a reference number used by ResFileOpenput empty into fName -- the name of the Opened fileput empty into rID -- the id of the selected icondChanger dialog,"5‚óäSingleSelection","7‚óäDismiss","8‚óä"else if i = 1 thenif fNum is not empty then-- close the resource file we had opened to display another-- file's icons.closeResFork(fNum)put empty into fNumend ifput dContents(dialog,5,"alt") into rIDelse if i = 2 thenif fNum is not empty then-- close the resource file we had opened to display another-- file's icons.closeResFork(fNum)put empty into fNumend ifelse if i = 3 then-- The open buttonif fNum is not empty then closeResFork(fNum)answer file "Please select file with desired icon."put it into fNameset cursor to arrowif fName is empty then exit getIconHitput openResFork(fName) into fNumget resIDList(fName,"ICON")put "new" & return before itput "ICONs in ‚Äú"&shortFileName(fName)&"‚Äù" into lbldChanger dialog,"5‚óä"&it,"6‚óä"&lbl,"8‚óä"if the result is not empty thenanswer the result with Cancelexit getIconHitend ifelse if i = 5 thenget dContents(dialog,5,"alt")if it is not empty thenget rInfo("","ICON",it)if first word of it is not "Error:"then put "#"&it into txtelse put "Information unavailable" into txtelse put "" into txtdChanger dialog,"8‚óä"&txtend ifend getIconHitfunction shortFileName longFileNameput number of chars in longFileName into crepeat until c < 1 or char c of longFileName is ":"subtract 1 from cend repeatreturn char c + 1 to 32767 of longFileNameend shortFileName</script>
  2338. </card>
  2339.  
  2340.  
  2341. card_6568.xml
  2342. <?xml version="1.0" encoding="utf-8" ?>
  2343. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2344. <card>
  2345.     <id>6568</id>
  2346.     <filler1>0</filler1>
  2347.     <cantDelete> <false /> </cantDelete>
  2348.     <showPict> <true /> </showPict>
  2349.     <dontSearch> <false /> </dontSearch>
  2350.     <owner>2662</owner>
  2351.     <link rel="stylesheet" type="text/css" href="stylesheet_6778.css" />
  2352.     <part>
  2353.         <id>3</id>
  2354.         <type>field</type>
  2355.         <visible> <true /> </visible>
  2356.         <dontWrap> <false /> </dontWrap>
  2357.         <dontSearch> <false /> </dontSearch>
  2358.         <sharedText> <false /> </sharedText>
  2359.         <fixedLineHeight> <true /> </fixedLineHeight>
  2360.         <autoTab> <false /> </autoTab>
  2361.         <lockText> <true /> </lockText>
  2362.         <rect>
  2363.             <left>109</left>
  2364.             <top>125</top>
  2365.             <right>382</right>
  2366.             <bottom>147</bottom>
  2367.         </rect>
  2368.         <style>rectangle</style>
  2369.         <autoSelect> <false /> </autoSelect>
  2370.         <showLines> <false /> </showLines>
  2371.         <wideMargins> <false /> </wideMargins>
  2372.         <multipleLines> <false /> </multipleLines>
  2373.         <reservedFamily> 0 </reservedFamily>
  2374.         <titleWidth>0</titleWidth>
  2375.         <icon>0</icon>
  2376.         <textAlign>left</textAlign>
  2377.         <font>Chicago</font>
  2378.         <textSize>12</textSize>
  2379.         <textStyle>plain</textStyle>
  2380.         <textHeight>18</textHeight>
  2381.         <name></name>
  2382.         <script>-- Fancy: false-- Prot: false-- Scroll: false-- getsHit: False-- iType: edit</script>
  2383.     </part>
  2384.     <part>
  2385.         <id>4</id>
  2386.         <type>field</type>
  2387.         <visible> <true /> </visible>
  2388.         <dontWrap> <false /> </dontWrap>
  2389.         <dontSearch> <false /> </dontSearch>
  2390.         <sharedText> <false /> </sharedText>
  2391.         <fixedLineHeight> <true /> </fixedLineHeight>
  2392.         <autoTab> <false /> </autoTab>
  2393.         <lockText> <true /> </lockText>
  2394.         <rect>
  2395.             <left>71</left>
  2396.             <top>191</top>
  2397.             <right>288</right>
  2398.             <bottom>245</bottom>
  2399.         </rect>
  2400.         <style>scrolling</style>
  2401.         <autoSelect> <false /> </autoSelect>
  2402.         <showLines> <false /> </showLines>
  2403.         <wideMargins> <false /> </wideMargins>
  2404.         <multipleLines> <false /> </multipleLines>
  2405.         <reservedFamily> 0 </reservedFamily>
  2406.         <titleWidth>0</titleWidth>
  2407.         <icon>0</icon>
  2408.         <textAlign>left</textAlign>
  2409.         <font>Geneva</font>
  2410.         <textSize>12</textSize>
  2411.         <textStyle>plain</textStyle>
  2412.         <textHeight>16</textHeight>
  2413.         <name></name>
  2414.         <script>-- getsHit: True-- iType: user-- uType: list</script>
  2415.     </part>
  2416.     <part>
  2417.         <id>5</id>
  2418.         <type>field</type>
  2419.         <visible> <true /> </visible>
  2420.         <dontWrap> <false /> </dontWrap>
  2421.         <dontSearch> <false /> </dontSearch>
  2422.         <sharedText> <false /> </sharedText>
  2423.         <fixedLineHeight> <true /> </fixedLineHeight>
  2424.         <autoTab> <false /> </autoTab>
  2425.         <lockText> <true /> </lockText>
  2426.         <rect>
  2427.             <left>109</left>
  2428.             <top>157</top>
  2429.             <right>189</right>
  2430.             <bottom>175</bottom>
  2431.         </rect>
  2432.         <style>shadow</style>
  2433.         <autoSelect> <false /> </autoSelect>
  2434.         <showLines> <false /> </showLines>
  2435.         <wideMargins> <false /> </wideMargins>
  2436.         <multipleLines> <false /> </multipleLines>
  2437.         <reservedFamily> 0 </reservedFamily>
  2438.         <titleWidth>0</titleWidth>
  2439.         <icon>0</icon>
  2440.         <textAlign>left</textAlign>
  2441.         <font>Geneva</font>
  2442.         <textSize>12</textSize>
  2443.         <textStyle>plain</textStyle>
  2444.         <textHeight>16</textHeight>
  2445.         <name></name>
  2446.         <script>-- getsHit: True-- iType: user-- uType: pop</script>
  2447.     </part>
  2448.     <part>
  2449.         <id>6</id>
  2450.         <type>field</type>
  2451.         <visible> <true /> </visible>
  2452.         <dontWrap> <false /> </dontWrap>
  2453.         <dontSearch> <false /> </dontSearch>
  2454.         <sharedText> <false /> </sharedText>
  2455.         <fixedLineHeight> <true /> </fixedLineHeight>
  2456.         <autoTab> <false /> </autoTab>
  2457.         <lockText> <true /> </lockText>
  2458.         <rect>
  2459.             <left>265</left>
  2460.             <top>157</top>
  2461.             <right>382</right>
  2462.             <bottom>175</bottom>
  2463.         </rect>
  2464.         <style>shadow</style>
  2465.         <autoSelect> <false /> </autoSelect>
  2466.         <showLines> <false /> </showLines>
  2467.         <wideMargins> <false /> </wideMargins>
  2468.         <multipleLines> <false /> </multipleLines>
  2469.         <reservedFamily> 0 </reservedFamily>
  2470.         <titleWidth>0</titleWidth>
  2471.         <icon>0</icon>
  2472.         <textAlign>left</textAlign>
  2473.         <font>Geneva</font>
  2474.         <textSize>12</textSize>
  2475.         <textStyle>plain</textStyle>
  2476.         <textHeight>16</textHeight>
  2477.         <name></name>
  2478.         <script>-- getsHit: True-- iType: user-- uType: pop</script>
  2479.     </part>
  2480.     <part>
  2481.         <id>7</id>
  2482.         <type>field</type>
  2483.         <visible> <true /> </visible>
  2484.         <dontWrap> <false /> </dontWrap>
  2485.         <dontSearch> <false /> </dontSearch>
  2486.         <sharedText> <false /> </sharedText>
  2487.         <fixedLineHeight> <true /> </fixedLineHeight>
  2488.         <autoTab> <false /> </autoTab>
  2489.         <lockText> <true /> </lockText>
  2490.         <rect>
  2491.             <left>67</left>
  2492.             <top>157</top>
  2493.             <right>109</right>
  2494.             <bottom>173</bottom>
  2495.         </rect>
  2496.         <style>opaque</style>
  2497.         <autoSelect> <false /> </autoSelect>
  2498.         <showLines> <false /> </showLines>
  2499.         <wideMargins> <false /> </wideMargins>
  2500.         <multipleLines> <false /> </multipleLines>
  2501.         <reservedFamily> 0 </reservedFamily>
  2502.         <titleWidth>0</titleWidth>
  2503.         <icon>0</icon>
  2504.         <textAlign>left</textAlign>
  2505.         <font>Chicago</font>
  2506.         <textSize>12</textSize>
  2507.         <textStyle>plain</textStyle>
  2508.         <textHeight>14</textHeight>
  2509.         <name></name>
  2510.         <script>-- Fancy: false-- Scroll: false-- getsHit: False-- iType: stat</script>
  2511.     </part>
  2512.     <part>
  2513.         <id>8</id>
  2514.         <type>field</type>
  2515.         <visible> <true /> </visible>
  2516.         <dontWrap> <false /> </dontWrap>
  2517.         <dontSearch> <false /> </dontSearch>
  2518.         <sharedText> <false /> </sharedText>
  2519.         <fixedLineHeight> <true /> </fixedLineHeight>
  2520.         <autoTab> <false /> </autoTab>
  2521.         <lockText> <true /> </lockText>
  2522.         <rect>
  2523.             <left>208</left>
  2524.             <top>157</top>
  2525.             <right>265</right>
  2526.             <bottom>173</bottom>
  2527.         </rect>
  2528.         <style>opaque</style>
  2529.         <autoSelect> <false /> </autoSelect>
  2530.         <showLines> <false /> </showLines>
  2531.         <wideMargins> <false /> </wideMargins>
  2532.         <multipleLines> <false /> </multipleLines>
  2533.         <reservedFamily> 0 </reservedFamily>
  2534.         <titleWidth>0</titleWidth>
  2535.         <icon>0</icon>
  2536.         <textAlign>left</textAlign>
  2537.         <font>Chicago</font>
  2538.         <textSize>12</textSize>
  2539.         <textStyle>plain</textStyle>
  2540.         <textHeight>14</textHeight>
  2541.         <name></name>
  2542.         <script>-- Fancy: false-- Scroll: false-- getsHit: False-- iType: stat</script>
  2543.     </part>
  2544.     <part>
  2545.         <id>9</id>
  2546.         <type>field</type>
  2547.         <visible> <true /> </visible>
  2548.         <dontWrap> <false /> </dontWrap>
  2549.         <dontSearch> <false /> </dontSearch>
  2550.         <sharedText> <false /> </sharedText>
  2551.         <fixedLineHeight> <true /> </fixedLineHeight>
  2552.         <autoTab> <false /> </autoTab>
  2553.         <lockText> <true /> </lockText>
  2554.         <rect>
  2555.             <left>68</left>
  2556.             <top>128</top>
  2557.             <right>104</right>
  2558.             <bottom>144</bottom>
  2559.         </rect>
  2560.         <style>opaque</style>
  2561.         <autoSelect> <false /> </autoSelect>
  2562.         <showLines> <false /> </showLines>
  2563.         <wideMargins> <false /> </wideMargins>
  2564.         <multipleLines> <false /> </multipleLines>
  2565.         <reservedFamily> 0 </reservedFamily>
  2566.         <titleWidth>0</titleWidth>
  2567.         <icon>0</icon>
  2568.         <textAlign>left</textAlign>
  2569.         <font>Chicago</font>
  2570.         <textSize>12</textSize>
  2571.         <textStyle>plain</textStyle>
  2572.         <textHeight>14</textHeight>
  2573.         <name></name>
  2574.         <script>-- Fancy: false-- Scroll: false-- getsHit: False-- iType: stat</script>
  2575.     </part>
  2576.     <part>
  2577.         <id>10</id>
  2578.         <type>button</type>
  2579.         <visible> <true /> </visible>
  2580.         <reserved5> 0 </reserved5>
  2581.         <reserved4> 0 </reserved4>
  2582.         <reserved3> 0 </reserved3>
  2583.         <reserved2> 0 </reserved2>
  2584.         <reserved1> 0 </reserved1>
  2585.         <enabled> <true /> </enabled>
  2586.         <rect>
  2587.             <left>303</left>
  2588.             <top>190</top>
  2589.             <right>383</right>
  2590.             <bottom>210</bottom>
  2591.         </rect>
  2592.         <style>roundrect</style>
  2593.         <showName> <true /> </showName>
  2594.         <highlight> <false /> </highlight>
  2595.         <autoHighlight> <false /> </autoHighlight>
  2596.         <sharedHighlight> <true /> </sharedHighlight>
  2597.         <family>0</family>
  2598.         <titleWidth>0</titleWidth>
  2599.         <icon>0</icon>
  2600.         <textAlign>center</textAlign>
  2601.         <font>Chicago</font>
  2602.         <textSize>12</textSize>
  2603.         <textStyle>plain</textStyle>
  2604.         <name>Find</name>
  2605.         <script>-- getsHit: True-- iType: btn</script>
  2606.     </part>
  2607.     <part>
  2608.         <id>11</id>
  2609.         <type>button</type>
  2610.         <visible> <true /> </visible>
  2611.         <reserved5> 0 </reserved5>
  2612.         <reserved4> 0 </reserved4>
  2613.         <reserved3> 0 </reserved3>
  2614.         <reserved2> 0 </reserved2>
  2615.         <reserved1> 0 </reserved1>
  2616.         <enabled> <true /> </enabled>
  2617.         <rect>
  2618.             <left>303</left>
  2619.             <top>222</top>
  2620.             <right>383</right>
  2621.             <bottom>242</bottom>
  2622.         </rect>
  2623.         <style>roundrect</style>
  2624.         <showName> <true /> </showName>
  2625.         <highlight> <false /> </highlight>
  2626.         <autoHighlight> <false /> </autoHighlight>
  2627.         <sharedHighlight> <true /> </sharedHighlight>
  2628.         <family>0</family>
  2629.         <titleWidth>0</titleWidth>
  2630.         <icon>0</icon>
  2631.         <textAlign>center</textAlign>
  2632.         <font>Chicago</font>
  2633.         <textSize>12</textSize>
  2634.         <textStyle>plain</textStyle>
  2635.         <name>Cancel</name>
  2636.         <script>-- getsHit: True-- iType: btn</script>
  2637.     </part>
  2638.     <content>
  2639.         <layer>background</layer>
  2640.         <id>48</id>
  2641.         <text>64,112,392,2564trueFloat</text>
  2642.     </content>
  2643.     <content>
  2644.         <layer>background</layer>
  2645.         <id>20</id>
  2646.         <text>!Find'er</text>
  2647.     </content>
  2648.     <content>
  2649.         <layer>card</layer>
  2650.         <id>7</id>
  2651.         <text>Using</text>
  2652.     </content>
  2653.     <content>
  2654.         <layer>card</layer>
  2655.         <id>8</id>
  2656.         <text>In Field</text>
  2657.     </content>
  2658.     <content>
  2659.         <layer>card</layer>
  2660.         <id>9</id>
  2661.         <text>Find</text>
  2662.     </content>
  2663.     <content>
  2664.         <layer>background</layer>
  2665.         <id>28</id>
  2666.         <text>cd btn id 10cd btn id 11cd fld id 3cd fld id 4cd fld id 5cd fld id 6cd fld id 7cd fld id 8cd fld id 9</text>
  2667.     </content>
  2668.     <content>
  2669.         <layer>background</layer>
  2670.         <id>36</id>
  2671.         <text>Button "Find"Button "Cancel"Editable Text ""List ""PopUp ""PopUp ""Static Text "Using"Static Text "In Field"Static Text "Find"</text>
  2672.     </content>
  2673.     <content>
  2674.         <layer>background</layer>
  2675.         <id>80</id>
  2676.         <text>This dialog has a single HyperTalk function associated with it. This function displays a dialog which allows the user great flexibility in searching through cards. The search string, location and method may all be set to specify exactly how the search is to be conducted.Get FindCard(¬´Default¬ª)Where ¬´Default¬ª is the default text to be search for.FindCards returns a list of matching cards.  Based on a dialog (FindDLOG) submitted by Dean H. Wette, XNet‚Ñ¢  FindDLOG ¬© 1989 Dean WetteTo experiment with this dialog, click the Show button on the tool palette.</text>
  2677.     </content>
  2678.     <content>
  2679.         <layer>background</layer>
  2680.         <id>84</id>
  2681.         <text>Put FindCard("find'er")</text>
  2682.     </content>
  2683.     <content>
  2684.         <layer>background</layer>
  2685.         <id>83</id>
  2686.         <text>false</text>
  2687.     </content>
  2688.     <name>!Find'er</name>
  2689.     <script>function findCard default-- This function displays a dialog which allows the user to specify-- exactly how he/she wants to search through the cards. Matching-- cards are returned in a list as the result of the function.---- Based on a dialog (FindDLOG) submitted by Dean H. Wette, XNet‚Ñ¢-- FindDLOG ¬© 1989 Dean Wetteglobal cdListput return into CR-- Initialize the using: popupput "Anywhere" & CR &¬¨"Characters" & CR &¬¨"Word" & CR &¬¨"String" & CR &¬¨"Whole" into PopUp1-- Initialize the bg flds popupput "Anywhere" & CR & "(-" & CR into PopUp2repeat with f = 1 to number of bg fldsget word 3 to 999 of name of bg fld fdelete last char of itput (char 2 to 999 of it) & CR after PopUp2end repeatdelete last char of PopUp2-- invoke dialogerput Dialoger("!Find'er" & CR & "modeless" ¬¨, "0‚óäon FindHit" ¬¨, "0‚óäTitle Card Finder"¬¨, "1‚óäNoDismiss"¬¨, "3‚óä"&default¬¨, "4‚óäuserList geneva,9,SingleSelection"¬¨, "5‚óäuserPop 1,7"  & CR & PopUp1¬¨, "6‚óäuserPop 1,8,Fixed"  & CR & PopUp2¬¨) into dResultif word 1 of dResult is "Error:" then answer (dResult) with "Cancel"--Get rid of trailing returndelete last char of cdListreturn cdListend findCardon findHit dialog, itemHit-- this is the hit handler called by findCardglobal firstFound, cdListif itemHit = 0 then-- initialize the global variables and make sure only a single-- line of the cd list may be selected at onceput true into firstFoundput empty into cdListelse if itemHit = 4 then-- This is a click on the listget dContents(dialog,4,"alt")if it is not empty thengo itend ifelse if itemHit = 1 then-- This is a click on the Find Next buttonget dContents(dialog,5)lock screenif not firstFound then go nextif it is "Anywhere"then find dContents(dialog,3) in fld (dContents(dialog,6))else if it is "string"then find string dContents(dialog,3) in fld (dContents(dialog,6))else if it is "characters"then find characters dContents(dialog,3) in fld (dContents(dialog,6))else if it is "word"then find word dContents(dialog,3) in fld (dContents(dialog,6))else if it is "whole"then find whole dContents(dialog,3) in fld (dContents(dialog,6))if the result is "not found" thenbeepgo prevunlock screenexit findHitend ifunlock screenget name of this cdif it is not in cdList then-- Add the card to list and manage the list selectionsput it & return after cdListdChanger dialog,"4‚óäAdd 1,1" & return & (name of this cd) ¬¨, "4‚óäselect 1"else-- select the existing entry in the listdChanger dialog,"4‚óäselectText"&&itend ifif firstFound thendChanger dialog,"1‚óäFind Next","2‚óäDone"end ifput false into firstFoundend ifend findHit</script>
  2690. </card>
  2691.  
  2692.  
  2693. card_5637.xml
  2694. <?xml version="1.0" encoding="utf-8" ?>
  2695. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2696. <card>
  2697.     <id>5637</id>
  2698.     <filler1>0</filler1>
  2699.     <cantDelete> <false /> </cantDelete>
  2700.     <showPict> <true /> </showPict>
  2701.     <dontSearch> <false /> </dontSearch>
  2702.     <owner>2662</owner>
  2703.     <link rel="stylesheet" type="text/css" href="stylesheet_6778.css" />
  2704.     <part>
  2705.         <id>1</id>
  2706.         <type>button</type>
  2707.         <visible> <true /> </visible>
  2708.         <reserved5> 0 </reserved5>
  2709.         <reserved4> 0 </reserved4>
  2710.         <reserved3> 0 </reserved3>
  2711.         <reserved2> 0 </reserved2>
  2712.         <reserved1> 0 </reserved1>
  2713.         <enabled> <true /> </enabled>
  2714.         <rect>
  2715.             <left>209</left>
  2716.             <top>247</top>
  2717.             <right>289</right>
  2718.             <bottom>265</bottom>
  2719.         </rect>
  2720.         <style>roundrect</style>
  2721.         <showName> <true /> </showName>
  2722.         <highlight> <false /> </highlight>
  2723.         <autoHighlight> <false /> </autoHighlight>
  2724.         <sharedHighlight> <true /> </sharedHighlight>
  2725.         <family>0</family>
  2726.         <titleWidth>0</titleWidth>
  2727.         <icon>0</icon>
  2728.         <textAlign>center</textAlign>
  2729.         <font>Chicago</font>
  2730.         <textSize>12</textSize>
  2731.         <textStyle>plain</textStyle>
  2732.         <name>OK</name>
  2733.         <script>-- getsHit: True-- iType: btn</script>
  2734.     </part>
  2735.     <part>
  2736.         <id>2</id>
  2737.         <type>button</type>
  2738.         <visible> <true /> </visible>
  2739.         <reserved5> 0 </reserved5>
  2740.         <reserved4> 0 </reserved4>
  2741.         <reserved3> 0 </reserved3>
  2742.         <reserved2> 0 </reserved2>
  2743.         <reserved1> 0 </reserved1>
  2744.         <enabled> <true /> </enabled>
  2745.         <rect>
  2746.             <left>305</left>
  2747.             <top>247</top>
  2748.             <right>385</right>
  2749.             <bottom>265</bottom>
  2750.         </rect>
  2751.         <style>roundrect</style>
  2752.         <showName> <true /> </showName>
  2753.         <highlight> <false /> </highlight>
  2754.         <autoHighlight> <false /> </autoHighlight>
  2755.         <sharedHighlight> <true /> </sharedHighlight>
  2756.         <family>0</family>
  2757.         <titleWidth>0</titleWidth>
  2758.         <icon>0</icon>
  2759.         <textAlign>center</textAlign>
  2760.         <font>Chicago</font>
  2761.         <textSize>12</textSize>
  2762.         <textStyle>plain</textStyle>
  2763.         <name>Cancel</name>
  2764.         <script>-- getsHit: True-- iType: btn</script>
  2765.     </part>
  2766.     <part>
  2767.         <id>3</id>
  2768.         <type>field</type>
  2769.         <visible> <true /> </visible>
  2770.         <dontWrap> <false /> </dontWrap>
  2771.         <dontSearch> <false /> </dontSearch>
  2772.         <sharedText> <false /> </sharedText>
  2773.         <fixedLineHeight> <true /> </fixedLineHeight>
  2774.         <autoTab> <false /> </autoTab>
  2775.         <lockText> <true /> </lockText>
  2776.         <rect>
  2777.             <left>153</left>
  2778.             <top>123</top>
  2779.             <right>385</right>
  2780.             <bottom>243</bottom>
  2781.         </rect>
  2782.         <style>scrolling</style>
  2783.         <autoSelect> <false /> </autoSelect>
  2784.         <showLines> <false /> </showLines>
  2785.         <wideMargins> <false /> </wideMargins>
  2786.         <multipleLines> <false /> </multipleLines>
  2787.         <reservedFamily> 0 </reservedFamily>
  2788.         <titleWidth>0</titleWidth>
  2789.         <icon>0</icon>
  2790.         <textAlign>left</textAlign>
  2791.         <font>Geneva</font>
  2792.         <textSize>12</textSize>
  2793.         <textStyle>plain</textStyle>
  2794.         <textHeight>16</textHeight>
  2795.         <name></name>
  2796.         <script>-- getsHit: True-- iType: user-- uType: list</script>
  2797.     </part>
  2798.     <part>
  2799.         <id>4</id>
  2800.         <type>field</type>
  2801.         <visible> <true /> </visible>
  2802.         <dontWrap> <false /> </dontWrap>
  2803.         <dontSearch> <false /> </dontSearch>
  2804.         <sharedText> <false /> </sharedText>
  2805.         <fixedLineHeight> <true /> </fixedLineHeight>
  2806.         <autoTab> <false /> </autoTab>
  2807.         <lockText> <true /> </lockText>
  2808.         <rect>
  2809.             <left>153</left>
  2810.             <top>83</top>
  2811.             <right>385</right>
  2812.             <bottom>114</bottom>
  2813.         </rect>
  2814.         <style>opaque</style>
  2815.         <autoSelect> <false /> </autoSelect>
  2816.         <showLines> <false /> </showLines>
  2817.         <wideMargins> <false /> </wideMargins>
  2818.         <multipleLines> <false /> </multipleLines>
  2819.         <reservedFamily> 0 </reservedFamily>
  2820.         <titleWidth>0</titleWidth>
  2821.         <icon>0</icon>
  2822.         <textAlign>left</textAlign>
  2823.         <font>Chicago</font>
  2824.         <textSize>12</textSize>
  2825.         <textStyle>plain</textStyle>
  2826.         <textHeight>14</textHeight>
  2827.         <name></name>
  2828.         <script>-- Prot: false-- getsHit: true-- Scroll: false-- Prot:-- getsHit:-- Scroll:-- Prot:-- Fancy: false-- Scroll:-- getsHit:-- iType: stat</script>
  2829.     </part>
  2830.     <content>
  2831.         <layer>background</layer>
  2832.         <id>48</id>
  2833.         <text>145,67,393,2751falsemyHit,320Modeless3</text>
  2834.     </content>
  2835.     <content>
  2836.         <layer>background</layer>
  2837.         <id>20</id>
  2838.         <text>!Choice</text>
  2839.     </content>
  2840.     <content>
  2841.         <layer>background</layer>
  2842.         <id>28</id>
  2843.         <text>cd btn id 1cd btn id 2cd fld id 3cd fld id 4</text>
  2844.     </content>
  2845.     <content>
  2846.         <layer>background</layer>
  2847.         <id>36</id>
  2848.         <text>Button "OK"Button "Cancel"List "Red"Static Text "^0"</text>
  2849.     </content>
  2850.     <content>
  2851.         <layer>card</layer>
  2852.         <id>3</id>
  2853.         <text>RedGreenBlueOrangeYellowWhiteMagenta</text>
  2854.     </content>
  2855.     <content>
  2856.         <layer>card</layer>
  2857.         <id>4</id>
  2858.         <text>^0</text>
  2859.     </content>
  2860.     <content>
  2861.         <layer>background</layer>
  2862.         <id>80</id>
  2863.         <text>This dialog has two HyperTalk functions associated with it. They allow you to present a list of choices to the user for selection. The two functions, Choice and Choices, differ only in the number of selections that the user may make; Choice allows only one while Choices allows any number:Get Choice(¬´Prompt¬ª,¬´ChoiceList¬ª)Where ¬´Prompt¬ª is the text to be displayed in the dialog and ¬´ChoiceList¬ª is the list of items to be displayed (each separated by a return).Choice (and its sister Choices) return the text of the selected line(s).To experiment with this dialog, click the Show button on the tool palette.</text>
  2864.     </content>
  2865.     <content>
  2866.         <layer>background</layer>
  2867.         <id>84</id>
  2868.         <text>Put Choices("Please indicate the computers you currently own.","Apple" &return& "Compaq" &return& "IBM" &return& "Epson" &return& "Toshiba" &return& "Zenith")Put Choice("Please indicate your favorite computer.", "Apple" &return& "Compaq" &return& "IBM" &return& "Epson" &return& "Toshiba" &return& "Zenith")</text>
  2869.     </content>
  2870.     <content>
  2871.         <layer>background</layer>
  2872.         <id>83</id>
  2873.         <text>false</text>
  2874.     </content>
  2875.     <name>!Choice</name>
  2876.     <script>on myHit dialog, itemHit, partHit-- Created on: Tuesday, August 13, 1991if itemHit = 0 then -- Initialize dialogelse if itemHit = 1 then -- Button "OK"else if itemHit = 2 then -- Button "Cancel"else if itemHit = 3 then -- List "Red"else if itemHit = 4 then -- Static Text "^0"end ifend myHitfunction choice txt, list-- This format will allow only one selection from the list-- The "1" causes a double-click on the list to be interpreted as-- a click on the OK button (item 1).return ListDialog(1, txt, list)end choicefunction choices txt, list-- This format will allow multiple selections from the listreturn ListDialog("AnySelection", txt, list)end choicesfunction ListDialog logic, txt, list-- This function will display a dialog from which a single line of the-- list may be selected. The text of the line selected is returned.-- A shorthand for returnput return into CR-- Here's where we put up the dialogput Dialoger("!Choice"&CR&"KeyScrollItem 3"¬¨, txt¬¨, "userList Chicago,12,"&logic  & CR & List¬¨) into dResult-- Make sure we don't have an error and return the resultif first word of dResult is "Error:" thenanswer dResult with Cancelexit to HyperCardelseif line 2 of dResult is empty then -- Cancel not clickedget line 3 of dResult -- selected list linesput empty into selectedLinesrepeat with i = 1 to number of items in itput line (item i of it) of list & return after selectedLinesend repeatdelete last char of selectedlinesreturn selectedLinesend ifend ifend ListDialog</script>
  2877. </card>
  2878.  
  2879.  
  2880. card_2486.xml
  2881. <?xml version="1.0" encoding="utf-8" ?>
  2882. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2883. <card>
  2884.     <id>2486</id>
  2885.     <filler1>0</filler1>
  2886.     <cantDelete> <false /> </cantDelete>
  2887.     <showPict> <true /> </showPict>
  2888.     <dontSearch> <false /> </dontSearch>
  2889.     <owner>2662</owner>
  2890.     <link rel="stylesheet" type="text/css" href="stylesheet_6778.css" />
  2891.     <part>
  2892.         <id>5</id>
  2893.         <type>button</type>
  2894.         <visible> <true /> </visible>
  2895.         <reserved5> 0 </reserved5>
  2896.         <reserved4> 0 </reserved4>
  2897.         <reserved3> 0 </reserved3>
  2898.         <reserved2> 0 </reserved2>
  2899.         <reserved1> 0 </reserved1>
  2900.         <enabled> <true /> </enabled>
  2901.         <rect>
  2902.             <left>204</left>
  2903.             <top>176</top>
  2904.             <right>284</right>
  2905.             <bottom>194</bottom>
  2906.         </rect>
  2907.         <style>roundrect</style>
  2908.         <showName> <true /> </showName>
  2909.         <highlight> <false /> </highlight>
  2910.         <autoHighlight> <false /> </autoHighlight>
  2911.         <sharedHighlight> <true /> </sharedHighlight>
  2912.         <family>0</family>
  2913.         <titleWidth>0</titleWidth>
  2914.         <icon>0</icon>
  2915.         <textAlign>center</textAlign>
  2916.         <font>Chicago</font>
  2917.         <textSize>12</textSize>
  2918.         <textStyle>plain</textStyle>
  2919.         <name>OK</name>
  2920.         <script>-- getsHit: true-- iType: btn</script>
  2921.     </part>
  2922.     <part>
  2923.         <id>6</id>
  2924.         <type>button</type>
  2925.         <visible> <true /> </visible>
  2926.         <reserved5> 0 </reserved5>
  2927.         <reserved4> 0 </reserved4>
  2928.         <reserved3> 0 </reserved3>
  2929.         <reserved2> 0 </reserved2>
  2930.         <reserved1> 0 </reserved1>
  2931.         <enabled> <true /> </enabled>
  2932.         <rect>
  2933.             <left>300</left>
  2934.             <top>176</top>
  2935.             <right>380</right>
  2936.             <bottom>194</bottom>
  2937.         </rect>
  2938.         <style>roundrect</style>
  2939.         <showName> <true /> </showName>
  2940.         <highlight> <false /> </highlight>
  2941.         <autoHighlight> <false /> </autoHighlight>
  2942.         <sharedHighlight> <true /> </sharedHighlight>
  2943.         <family>0</family>
  2944.         <titleWidth>0</titleWidth>
  2945.         <icon>0</icon>
  2946.         <textAlign>center</textAlign>
  2947.         <font>Chicago</font>
  2948.         <textSize>12</textSize>
  2949.         <textStyle>plain</textStyle>
  2950.         <name>Cancel</name>
  2951.         <script>-- getsHit: true-- iType: btn</script>
  2952.     </part>
  2953.     <part>
  2954.         <id>7</id>
  2955.         <type>field</type>
  2956.         <visible> <true /> </visible>
  2957.         <dontWrap> <false /> </dontWrap>
  2958.         <dontSearch> <false /> </dontSearch>
  2959.         <sharedText> <false /> </sharedText>
  2960.         <fixedLineHeight> <true /> </fixedLineHeight>
  2961.         <autoTab> <false /> </autoTab>
  2962.         <lockText> <true /> </lockText>
  2963.         <rect>
  2964.             <left>156</left>
  2965.             <top>120</top>
  2966.             <right>380</right>
  2967.             <bottom>142</bottom>
  2968.         </rect>
  2969.         <style>rectangle</style>
  2970.         <autoSelect> <false /> </autoSelect>
  2971.         <showLines> <false /> </showLines>
  2972.         <wideMargins> <false /> </wideMargins>
  2973.         <multipleLines> <false /> </multipleLines>
  2974.         <reservedFamily> 0 </reservedFamily>
  2975.         <titleWidth>0</titleWidth>
  2976.         <icon>0</icon>
  2977.         <textAlign>left</textAlign>
  2978.         <font>Chicago</font>
  2979.         <textSize>12</textSize>
  2980.         <textStyle>plain</textStyle>
  2981.         <textHeight>18</textHeight>
  2982.         <name></name>
  2983.         <script>-- Fancy: false-- Scroll: false-- Prot: false-- getsHit: false-- iType: edit</script>
  2984.     </part>
  2985.     <part>
  2986.         <id>8</id>
  2987.         <type>field</type>
  2988.         <visible> <true /> </visible>
  2989.         <dontWrap> <false /> </dontWrap>
  2990.         <dontSearch> <false /> </dontSearch>
  2991.         <sharedText> <false /> </sharedText>
  2992.         <fixedLineHeight> <true /> </fixedLineHeight>
  2993.         <autoTab> <false /> </autoTab>
  2994.         <lockText> <true /> </lockText>
  2995.         <rect>
  2996.             <left>156</left>
  2997.             <top>104</top>
  2998.             <right>380</right>
  2999.             <bottom>120</bottom>
  3000.         </rect>
  3001.         <style>opaque</style>
  3002.         <autoSelect> <false /> </autoSelect>
  3003.         <showLines> <false /> </showLines>
  3004.         <wideMargins> <false /> </wideMargins>
  3005.         <multipleLines> <false /> </multipleLines>
  3006.         <reservedFamily> 0 </reservedFamily>
  3007.         <titleWidth>0</titleWidth>
  3008.         <icon>0</icon>
  3009.         <textAlign>left</textAlign>
  3010.         <font>Chicago</font>
  3011.         <textSize>12</textSize>
  3012.         <textStyle>plain</textStyle>
  3013.         <textHeight>14</textHeight>
  3014.         <name></name>
  3015.         <script>-- Prot: false-- Fancy: false-- Scroll: false-- getsHit: false-- iType: stat</script>
  3016.     </part>
  3017.     <part>
  3018.         <id>9</id>
  3019.         <type>button</type>
  3020.         <visible> <true /> </visible>
  3021.         <reserved5> 0 </reserved5>
  3022.         <reserved4> 0 </reserved4>
  3023.         <reserved3> 0 </reserved3>
  3024.         <reserved2> 0 </reserved2>
  3025.         <reserved1> 0 </reserved1>
  3026.         <enabled> <true /> </enabled>
  3027.         <rect>
  3028.             <left>164</left>
  3029.             <top>144</top>
  3030.             <right>340</right>
  3031.             <bottom>160</bottom>
  3032.         </rect>
  3033.         <style>checkbox</style>
  3034.         <showName> <true /> </showName>
  3035.         <highlight> <false /> </highlight>
  3036.         <autoHighlight> <false /> </autoHighlight>
  3037.         <sharedHighlight> <true /> </sharedHighlight>
  3038.         <family>0</family>
  3039.         <titleWidth>0</titleWidth>
  3040.         <icon>0</icon>
  3041.         <textAlign>center</textAlign>
  3042.         <font>Chicago</font>
  3043.         <textSize>12</textSize>
  3044.         <textStyle>plain</textStyle>
  3045.         <name>Checkbox</name>
  3046.         <script>-- getsHit: true-- iType: chk</script>
  3047.     </part>
  3048.     <content>
  3049.         <layer>background</layer>
  3050.         <id>48</id>
  3051.         <text>148,97,388,2011false,283Modal</text>
  3052.     </content>
  3053.     <content>
  3054.         <layer>background</layer>
  3055.         <id>20</id>
  3056.         <text>!AskX</text>
  3057.     </content>
  3058.     <content>
  3059.         <layer>background</layer>
  3060.         <id>80</id>
  3061.         <text>This dialog has a single HyperTalk function associated with it. Similar to the command Ask, it allows you to request from the user a piece of information. This function differs in that it also provides a checkbox to elicit additional information. The function looks like:Get AskX(¬´Prompt¬ª, ¬´Default¬ª, ¬´Label¬ª, ¬´Value¬ª)Where ¬´Prompt¬ª is the text to be displayed above the editable text item and ¬´Default¬ª is to be offered as the default for the entry. ¬´Label¬ª sets the label of the checkbox while ¬´Value¬ª sets it to either true of false.AskX returns two lines of text. The first contains the contents of the editable text item and the second line contains either true or false depending on the state of the checkbox.To experiment with this dialog, click the Show button on the tool palette.</text>
  3062.     </content>
  3063.     <content>
  3064.         <layer>background</layer>
  3065.         <id>28</id>
  3066.         <text>cd btn id 5cd btn id 6cd fld id 8cd fld id 7cd btn id 9</text>
  3067.     </content>
  3068.     <content>
  3069.         <layer>background</layer>
  3070.         <id>36</id>
  3071.         <text>Button "OK"Button "Cancel"Static Text "Prompt:"Editable Text ""Checkbox "Checkbox"</text>
  3072.     </content>
  3073.     <content>
  3074.         <layer>card</layer>
  3075.         <id>8</id>
  3076.         <text>Prompt:</text>
  3077.     </content>
  3078.     <content>
  3079.         <layer>background</layer>
  3080.         <id>83</id>
  3081.         <text>false</text>
  3082.     </content>
  3083.     <content>
  3084.         <layer>background</layer>
  3085.         <id>84</id>
  3086.         <text>Put AskX("Find:")Put AskX("Search for:","Something")Put AskX("Search for:","Something","Whole Words")Put AskX("Search for:","Something","Whole Words","true")</text>
  3087.     </content>
  3088.     <name>!AskX</name>
  3089.     <script>on HitMe dialog, itemHit, partHit-- Created on: Friday, September 13, 1991if itemHit = 0 then -- Initialize dialogelse if itemHit = 1 then -- Button "OK"else if itemHit = 2 then -- Button "Cancel"else if itemHit = 5 then -- Checkbox "Checkbox"end ifend HitMeon ErrMe dialog, errID-- Called for all non-fatal errors.answer "Error encountered:&&"errIDend ErrMefunction askX prompt,default,label,state-- This function will request a piece of information from the user-- The checkbox below the editable text item will-- be hidden if nothing is passed as argument 3 or 4if label & state is empty then put "hide" into labelget dialoger("!askX","",prompt,default,label&return&state)if word 1 of it is "error:" then answer it with "Cancel"return line 4 to 5 of itend askX</script>
  3090. </card>
  3091.  
  3092.  
  3093. card_2258.xml
  3094. <?xml version="1.0" encoding="utf-8" ?>
  3095. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  3096. <card>
  3097.     <id>2258</id>
  3098.     <filler1>0</filler1>
  3099.     <cantDelete> <false /> </cantDelete>
  3100.     <showPict> <true /> </showPict>
  3101.     <dontSearch> <false /> </dontSearch>
  3102.     <owner>2662</owner>
  3103.     <link rel="stylesheet" type="text/css" href="stylesheet_6778.css" />
  3104.     <part>
  3105.         <id>1</id>
  3106.         <type>button</type>
  3107.         <visible> <true /> </visible>
  3108.         <reserved5> 0 </reserved5>
  3109.         <reserved4> 0 </reserved4>
  3110.         <reserved3> 0 </reserved3>
  3111.         <reserved2> 0 </reserved2>
  3112.         <reserved1> 0 </reserved1>
  3113.         <enabled> <true /> </enabled>
  3114.         <rect>
  3115.             <left>204</left>
  3116.             <top>155</top>
  3117.             <right>284</right>
  3118.             <bottom>173</bottom>
  3119.         </rect>
  3120.         <style>roundrect</style>
  3121.         <showName> <true /> </showName>
  3122.         <highlight> <false /> </highlight>
  3123.         <autoHighlight> <false /> </autoHighlight>
  3124.         <sharedHighlight> <true /> </sharedHighlight>
  3125.         <family>0</family>
  3126.         <titleWidth>0</titleWidth>
  3127.         <icon>0</icon>
  3128.         <textAlign>center</textAlign>
  3129.         <font>Chicago</font>
  3130.         <textSize>12</textSize>
  3131.         <textStyle>plain</textStyle>
  3132.         <name>OK</name>
  3133.         <script>-- getsHit: true-- iType: btn</script>
  3134.     </part>
  3135.     <part>
  3136.         <id>2</id>
  3137.         <type>button</type>
  3138.         <visible> <true /> </visible>
  3139.         <reserved5> 0 </reserved5>
  3140.         <reserved4> 0 </reserved4>
  3141.         <reserved3> 0 </reserved3>
  3142.         <reserved2> 0 </reserved2>
  3143.         <reserved1> 0 </reserved1>
  3144.         <enabled> <true /> </enabled>
  3145.         <rect>
  3146.             <left>296</left>
  3147.             <top>155</top>
  3148.             <right>376</right>
  3149.             <bottom>173</bottom>
  3150.         </rect>
  3151.         <style>roundrect</style>
  3152.         <showName> <true /> </showName>
  3153.         <highlight> <false /> </highlight>
  3154.         <autoHighlight> <false /> </autoHighlight>
  3155.         <sharedHighlight> <true /> </sharedHighlight>
  3156.         <family>0</family>
  3157.         <titleWidth>0</titleWidth>
  3158.         <icon>0</icon>
  3159.         <textAlign>center</textAlign>
  3160.         <font>Chicago</font>
  3161.         <textSize>12</textSize>
  3162.         <textStyle>plain</textStyle>
  3163.         <name>Cancel</name>
  3164.         <script>-- getsHit: true-- iType: btn</script>
  3165.     </part>
  3166.     <part>
  3167.         <id>3</id>
  3168.         <type>field</type>
  3169.         <visible> <true /> </visible>
  3170.         <dontWrap> <false /> </dontWrap>
  3171.         <dontSearch> <false /> </dontSearch>
  3172.         <sharedText> <false /> </sharedText>
  3173.         <fixedLineHeight> <true /> </fixedLineHeight>
  3174.         <autoTab> <false /> </autoTab>
  3175.         <lockText> <true /> </lockText>
  3176.         <rect>
  3177.             <left>160</left>
  3178.             <top>103</top>
  3179.             <right>376</right>
  3180.             <bottom>119</bottom>
  3181.         </rect>
  3182.         <style>opaque</style>
  3183.         <autoSelect> <false /> </autoSelect>
  3184.         <showLines> <false /> </showLines>
  3185.         <wideMargins> <false /> </wideMargins>
  3186.         <multipleLines> <false /> </multipleLines>
  3187.         <reservedFamily> 0 </reservedFamily>
  3188.         <titleWidth>0</titleWidth>
  3189.         <icon>0</icon>
  3190.         <textAlign>left</textAlign>
  3191.         <font>Chicago</font>
  3192.         <textSize>12</textSize>
  3193.         <textStyle>plain</textStyle>
  3194.         <textHeight>14</textHeight>
  3195.         <name></name>
  3196.         <script>-- Prot: false-- Fancy: false-- Scroll: false-- getsHit: false-- iType: stat</script>
  3197.     </part>
  3198.     <part>
  3199.         <id>5</id>
  3200.         <type>field</type>
  3201.         <visible> <true /> </visible>
  3202.         <dontWrap> <false /> </dontWrap>
  3203.         <dontSearch> <false /> </dontSearch>
  3204.         <sharedText> <false /> </sharedText>
  3205.         <fixedLineHeight> <true /> </fixedLineHeight>
  3206.         <autoTab> <false /> </autoTab>
  3207.         <lockText> <true /> </lockText>
  3208.         <rect>
  3209.             <left>160</left>
  3210.             <top>119</top>
  3211.             <right>376</right>
  3212.             <bottom>141</bottom>
  3213.         </rect>
  3214.         <style>rectangle</style>
  3215.         <autoSelect> <false /> </autoSelect>
  3216.         <showLines> <false /> </showLines>
  3217.         <wideMargins> <false /> </wideMargins>
  3218.         <multipleLines> <false /> </multipleLines>
  3219.         <reservedFamily> 0 </reservedFamily>
  3220.         <titleWidth>0</titleWidth>
  3221.         <icon>0</icon>
  3222.         <textAlign>left</textAlign>
  3223.         <font>Chicago</font>
  3224.         <textSize>12</textSize>
  3225.         <textStyle>plain</textStyle>
  3226.         <textHeight>18</textHeight>
  3227.         <name></name>
  3228.         <script>-- Fancy: true-- Scroll: false-- Prot: true-- getsHit: false-- iType: edit</script>
  3229.     </part>
  3230.     <content>
  3231.         <layer>background</layer>
  3232.         <id>48</id>
  3233.         <text>152,95,384,1841falseModal</text>
  3234.     </content>
  3235.     <content>
  3236.         <layer>background</layer>
  3237.         <id>20</id>
  3238.         <text>!AskPassword</text>
  3239.     </content>
  3240.     <content>
  3241.         <layer>background</layer>
  3242.         <id>28</id>
  3243.         <text>cd btn id 1cd btn id 2cd fld id 3cd fld id 5</text>
  3244.     </content>
  3245.     <content>
  3246.         <layer>background</layer>
  3247.         <id>36</id>
  3248.         <text>Button "OK"Button "Cancel"Static Text "Password:"Styled Editable Text ""</text>
  3249.     </content>
  3250.     <content>
  3251.         <layer>card</layer>
  3252.         <id>3</id>
  3253.         <text>Password:</text>
  3254.     </content>
  3255.     <content>
  3256.         <layer>background</layer>
  3257.         <id>83</id>
  3258.         <text>false</text>
  3259.     </content>
  3260.     <content>
  3261.         <layer>background</layer>
  3262.         <id>80</id>
  3263.         <text>This dialog has a single HyperTalk function associated with it. Similar to the command Ask, it allows you to request from the user a piece of information. This function differs in that it masks the characters that are entered to provide security for password entry and such. The function looks like:Get AskPW(¬´Prompt¬ª)Where ¬´Prompt¬ª is the text to be displayed above the editable text item. AskPW returns the text entered by the user. While displayed as bullets, the text returned is obviously the actual characters entered.To experiment with this dialog, click the Show button on the tool palette.</text>
  3264.     </content>
  3265.     <content>
  3266.         <layer>background</layer>
  3267.         <id>84</id>
  3268.         <text>Put AskPW("Enter password please:")</text>
  3269.     </content>
  3270.     <name>!AskPassword</name>
  3271.     <script>function askPW txt-- This function will request a password from the user-- The text entered will be displayed as bullets-- The Protected command does the work of masking-- the entry into item 4get dialoger("!askPassword","",txt,"Protected ‚Ä¢")return line 4 of itend askPW</script>
  3272. </card>
  3273.  
  3274.  
  3275. card_4419.xml
  3276. <?xml version="1.0" encoding="utf-8" ?>
  3277. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  3278. <card>
  3279.     <id>4419</id>
  3280.     <filler1>0</filler1>
  3281.     <cantDelete> <false /> </cantDelete>
  3282.     <showPict> <true /> </showPict>
  3283.     <dontSearch> <false /> </dontSearch>
  3284.     <owner>2662</owner>
  3285.     <link rel="stylesheet" type="text/css" href="stylesheet_6778.css" />
  3286.     <part>
  3287.         <id>1</id>
  3288.         <type>button</type>
  3289.         <visible> <true /> </visible>
  3290.         <reserved5> 0 </reserved5>
  3291.         <reserved4> 0 </reserved4>
  3292.         <reserved3> 0 </reserved3>
  3293.         <reserved2> 0 </reserved2>
  3294.         <reserved1> 0 </reserved1>
  3295.         <enabled> <true /> </enabled>
  3296.         <rect>
  3297.             <left>209</left>
  3298.             <top>206</top>
  3299.             <right>289</right>
  3300.             <bottom>224</bottom>
  3301.         </rect>
  3302.         <style>roundrect</style>
  3303.         <showName> <true /> </showName>
  3304.         <highlight> <false /> </highlight>
  3305.         <autoHighlight> <false /> </autoHighlight>
  3306.         <sharedHighlight> <true /> </sharedHighlight>
  3307.         <family>0</family>
  3308.         <titleWidth>0</titleWidth>
  3309.         <icon>0</icon>
  3310.         <textAlign>center</textAlign>
  3311.         <font>Chicago</font>
  3312.         <textSize>12</textSize>
  3313.         <textStyle>plain</textStyle>
  3314.         <name>OK</name>
  3315.         <script>-- getsHit: True-- iType: btn</script>
  3316.     </part>
  3317.     <part>
  3318.         <id>2</id>
  3319.         <type>button</type>
  3320.         <visible> <true /> </visible>
  3321.         <reserved5> 0 </reserved5>
  3322.         <reserved4> 0 </reserved4>
  3323.         <reserved3> 0 </reserved3>
  3324.         <reserved2> 0 </reserved2>
  3325.         <reserved1> 0 </reserved1>
  3326.         <enabled> <true /> </enabled>
  3327.         <rect>
  3328.             <left>305</left>
  3329.             <top>206</top>
  3330.             <right>385</right>
  3331.             <bottom>224</bottom>
  3332.         </rect>
  3333.         <style>roundrect</style>
  3334.         <showName> <true /> </showName>
  3335.         <highlight> <false /> </highlight>
  3336.         <autoHighlight> <false /> </autoHighlight>
  3337.         <sharedHighlight> <true /> </sharedHighlight>
  3338.         <family>0</family>
  3339.         <titleWidth>0</titleWidth>
  3340.         <icon>0</icon>
  3341.         <textAlign>center</textAlign>
  3342.         <font>Chicago</font>
  3343.         <textSize>12</textSize>
  3344.         <textStyle>plain</textStyle>
  3345.         <name>Cancel</name>
  3346.         <script>-- getsHit: True-- iType: btn</script>
  3347.     </part>
  3348.     <part>
  3349.         <id>3</id>
  3350.         <type>field</type>
  3351.         <visible> <true /> </visible>
  3352.         <dontWrap> <false /> </dontWrap>
  3353.         <dontSearch> <false /> </dontSearch>
  3354.         <sharedText> <false /> </sharedText>
  3355.         <fixedLineHeight> <true /> </fixedLineHeight>
  3356.         <autoTab> <false /> </autoTab>
  3357.         <lockText> <true /> </lockText>
  3358.         <rect>
  3359.             <left>137</left>
  3360.             <top>122</top>
  3361.             <right>391</right>
  3362.             <bottom>144</bottom>
  3363.         </rect>
  3364.         <style>rectangle</style>
  3365.         <autoSelect> <false /> </autoSelect>
  3366.         <showLines> <false /> </showLines>
  3367.         <wideMargins> <false /> </wideMargins>
  3368.         <multipleLines> <false /> </multipleLines>
  3369.         <reservedFamily> 0 </reservedFamily>
  3370.         <titleWidth>0</titleWidth>
  3371.         <icon>0</icon>
  3372.         <textAlign>left</textAlign>
  3373.         <font>Chicago</font>
  3374.         <textSize>12</textSize>
  3375.         <textStyle>plain</textStyle>
  3376.         <textHeight>18</textHeight>
  3377.         <name></name>
  3378.         <script>-- Fancy: false-- Prot: false-- Scroll: false-- getsHit: false-- iType: edit</script>
  3379.     </part>
  3380.     <part>
  3381.         <id>4</id>
  3382.         <type>field</type>
  3383.         <visible> <true /> </visible>
  3384.         <dontWrap> <false /> </dontWrap>
  3385.         <dontSearch> <false /> </dontSearch>
  3386.         <sharedText> <false /> </sharedText>
  3387.         <fixedLineHeight> <true /> </fixedLineHeight>
  3388.         <autoTab> <false /> </autoTab>
  3389.         <lockText> <true /> </lockText>
  3390.         <rect>
  3391.             <left>137</left>
  3392.             <top>170</top>
  3393.             <right>391</right>
  3394.             <bottom>192</bottom>
  3395.         </rect>
  3396.         <style>rectangle</style>
  3397.         <autoSelect> <false /> </autoSelect>
  3398.         <showLines> <false /> </showLines>
  3399.         <wideMargins> <false /> </wideMargins>
  3400.         <multipleLines> <false /> </multipleLines>
  3401.         <reservedFamily> 0 </reservedFamily>
  3402.         <titleWidth>0</titleWidth>
  3403.         <icon>0</icon>
  3404.         <textAlign>left</textAlign>
  3405.         <font>Chicago</font>
  3406.         <textSize>12</textSize>
  3407.         <textStyle>plain</textStyle>
  3408.         <textHeight>18</textHeight>
  3409.         <name></name>
  3410.         <script>-- Fancy: false-- Prot: false-- Scroll: false-- getsHit: False-- iType: edit</script>
  3411.     </part>
  3412.     <part>
  3413.         <id>5</id>
  3414.         <type>field</type>
  3415.         <visible> <true /> </visible>
  3416.         <dontWrap> <false /> </dontWrap>
  3417.         <dontSearch> <false /> </dontSearch>
  3418.         <sharedText> <false /> </sharedText>
  3419.         <fixedLineHeight> <true /> </fixedLineHeight>
  3420.         <autoTab> <false /> </autoTab>
  3421.         <lockText> <true /> </lockText>
  3422.         <rect>
  3423.             <left>137</left>
  3424.             <top>87</top>
  3425.             <right>385</right>
  3426.             <bottom>119</bottom>
  3427.         </rect>
  3428.         <style>opaque</style>
  3429.         <autoSelect> <false /> </autoSelect>
  3430.         <showLines> <false /> </showLines>
  3431.         <wideMargins> <false /> </wideMargins>
  3432.         <multipleLines> <false /> </multipleLines>
  3433.         <reservedFamily> 0 </reservedFamily>
  3434.         <titleWidth>0</titleWidth>
  3435.         <icon>0</icon>
  3436.         <textAlign>left</textAlign>
  3437.         <font>Chicago</font>
  3438.         <textSize>12</textSize>
  3439.         <textStyle>plain</textStyle>
  3440.         <textHeight>14</textHeight>
  3441.         <name></name>
  3442.         <script>-- Fancy: false-- Scroll: false-- getsHit: False-- iType: stat</script>
  3443.     </part>
  3444.     <part>
  3445.         <id>6</id>
  3446.         <type>field</type>
  3447.         <visible> <true /> </visible>
  3448.         <dontWrap> <false /> </dontWrap>
  3449.         <dontSearch> <false /> </dontSearch>
  3450.         <sharedText> <false /> </sharedText>
  3451.         <fixedLineHeight> <true /> </fixedLineHeight>
  3452.         <autoTab> <false /> </autoTab>
  3453.         <lockText> <true /> </lockText>
  3454.         <rect>
  3455.             <left>137</left>
  3456.             <top>154</top>
  3457.             <right>385</right>
  3458.             <bottom>170</bottom>
  3459.         </rect>
  3460.         <style>opaque</style>
  3461.         <autoSelect> <false /> </autoSelect>
  3462.         <showLines> <false /> </showLines>
  3463.         <wideMargins> <false /> </wideMargins>
  3464.         <multipleLines> <false /> </multipleLines>
  3465.         <reservedFamily> 0 </reservedFamily>
  3466.         <titleWidth>0</titleWidth>
  3467.         <icon>0</icon>
  3468.         <textAlign>left</textAlign>
  3469.         <font>Chicago</font>
  3470.         <textSize>12</textSize>
  3471.         <textStyle>plain</textStyle>
  3472.         <textHeight>14</textHeight>
  3473.         <name></name>
  3474.         <script>-- Fancy: false-- Scroll: false-- getsHit: False-- iType: stat</script>
  3475.     </part>
  3476.     <content>
  3477.         <layer>background</layer>
  3478.         <id>48</id>
  3479.         <text>132,79,396,2311falseModal</text>
  3480.     </content>
  3481.     <content>
  3482.         <layer>background</layer>
  3483.         <id>20</id>
  3484.         <text>!Ask2</text>
  3485.     </content>
  3486.     <content>
  3487.         <layer>card</layer>
  3488.         <id>5</id>
  3489.         <text>^0</text>
  3490.     </content>
  3491.     <content>
  3492.         <layer>card</layer>
  3493.         <id>6</id>
  3494.         <text>^1</text>
  3495.     </content>
  3496.     <content>
  3497.         <layer>background</layer>
  3498.         <id>28</id>
  3499.         <text>cd btn id 1cd btn id 2cd fld id 3cd fld id 4cd fld id 5cd fld id 6</text>
  3500.     </content>
  3501.     <content>
  3502.         <layer>background</layer>
  3503.         <id>36</id>
  3504.         <text>Button "OK"Button "Cancel"Editable Text ""Editable Text ""Static Text "^0"Static Text "^1"</text>
  3505.     </content>
  3506.     <content>
  3507.         <layer>background</layer>
  3508.         <id>80</id>
  3509.         <text>This dialog has a single HyperTalk function associated with it. Similar to the command Ask, it allows you to request from the user two pieces of information at once rather than only one. Get Ask2(¬´Prompt1¬ª, ¬´Prompt2¬ª, ¬´Default1¬ª, ¬´Default2¬ª)Where ¬´Prompt1¬ª is the text to be displayed above the first editable text item and ¬´Default1¬ª is to be offered as the default for the first entry. Likewise for ¬´Prompt2¬ª and ¬´Default2¬ª. Ask2 returns two lines of text. The first contains the contents of the first editable text item and the second line the contents of the second.To experiment with this dialog, click the Show button on the tool palette.</text>
  3510.     </content>
  3511.     <content>
  3512.         <layer>background</layer>
  3513.         <id>84</id>
  3514.         <text>Put Ask2("Please name at least two friends. Unless, of course you don't have any:!")Put Ask2("Favorite Color?","Favorite sport?","Red","Hockey")Put Ask2("Find:","Replace with:")</text>
  3515.     </content>
  3516.     <content>
  3517.         <layer>background</layer>
  3518.         <id>83</id>
  3519.         <text>false</text>
  3520.     </content>
  3521.     <name>!Ask2</name>
  3522.     <script>function ask2 Prompt1, Prompt2, Default1, Default2-- This function will display a dialog with two places to enter text-- Each may have its own prompt.-- The function returns either empty (when cancel was pressed)-- or the two answers, each on its own line-- Just a shorthand for returnput return into CR-- This padding with spaces simply places the prompt text on the-- appropriate line.if number of chars in Prompt1 < 30then put "                                       "&¬¨"                        " before Prompt1-- The call to Dialoger - this is where the dialog gets displayedput Dialoger("!Ask2" ¬¨, Prompt1 & CR & Prompt2 ¬¨, Default1 ¬¨, Default2 ¬¨) into dResult-- Now we sort out what happenedif first word of dResult is "Error:" thenanswer dResult with Cancelexit to HyperCardelse if line 2 of dResult is not empty thenreturn emptyelsereturn (line 3 to 4 of dResult)end ifend ask2</script>
  3523. </card>
  3524.  
  3525.  
  3526. card_3765.xml
  3527. <?xml version="1.0" encoding="utf-8" ?>
  3528. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  3529. <card>
  3530.     <id>3765</id>
  3531.     <filler1>0</filler1>
  3532.     <cantDelete> <false /> </cantDelete>
  3533.     <showPict> <true /> </showPict>
  3534.     <dontSearch> <false /> </dontSearch>
  3535.     <owner>2662</owner>
  3536.     <link rel="stylesheet" type="text/css" href="stylesheet_6778.css" />
  3537.     <part>
  3538.         <id>3</id>
  3539.         <type>button</type>
  3540.         <visible> <true /> </visible>
  3541.         <reserved5> 0 </reserved5>
  3542.         <reserved4> 0 </reserved4>
  3543.         <reserved3> 0 </reserved3>
  3544.         <reserved2> 0 </reserved2>
  3545.         <reserved1> 0 </reserved1>
  3546.         <enabled> <true /> </enabled>
  3547.         <rect>
  3548.             <left>295</left>
  3549.             <top>205</top>
  3550.             <right>375</right>
  3551.             <bottom>223</bottom>
  3552.         </rect>
  3553.         <style>roundrect</style>
  3554.         <showName> <true /> </showName>
  3555.         <highlight> <false /> </highlight>
  3556.         <autoHighlight> <false /> </autoHighlight>
  3557.         <sharedHighlight> <true /> </sharedHighlight>
  3558.         <family>0</family>
  3559.         <titleWidth>0</titleWidth>
  3560.         <icon>0</icon>
  3561.         <textAlign>center</textAlign>
  3562.         <font>Chicago</font>
  3563.         <textSize>12</textSize>
  3564.         <textStyle>plain</textStyle>
  3565.         <name>Cancel</name>
  3566.         <script>-- getsHit: True-- iType: btn</script>
  3567.     </part>
  3568.     <part>
  3569.         <id>4</id>
  3570.         <type>button</type>
  3571.         <visible> <true /> </visible>
  3572.         <reserved5> 0 </reserved5>
  3573.         <reserved4> 0 </reserved4>
  3574.         <reserved3> 0 </reserved3>
  3575.         <reserved2> 0 </reserved2>
  3576.         <reserved1> 0 </reserved1>
  3577.         <enabled> <true /> </enabled>
  3578.         <rect>
  3579.             <left>143</left>
  3580.             <top>205</top>
  3581.             <right>224</right>
  3582.             <bottom>223</bottom>
  3583.         </rect>
  3584.         <style>roundrect</style>
  3585.         <showName> <true /> </showName>
  3586.         <highlight> <false /> </highlight>
  3587.         <autoHighlight> <false /> </autoHighlight>
  3588.         <sharedHighlight> <true /> </sharedHighlight>
  3589.         <family>0</family>
  3590.         <titleWidth>0</titleWidth>
  3591.         <icon>0</icon>
  3592.         <textAlign>center</textAlign>
  3593.         <font>Chicago</font>
  3594.         <textSize>12</textSize>
  3595.         <textStyle>plain</textStyle>
  3596.         <name>No</name>
  3597.         <script>-- getsHit: True-- iType: btn</script>
  3598.     </part>
  3599.     <part>
  3600.         <id>5</id>
  3601.         <type>button</type>
  3602.         <visible> <true /> </visible>
  3603.         <reserved5> 0 </reserved5>
  3604.         <reserved4> 0 </reserved4>
  3605.         <reserved3> 0 </reserved3>
  3606.         <reserved2> 0 </reserved2>
  3607.         <reserved1> 0 </reserved1>
  3608.         <enabled> <true /> </enabled>
  3609.         <rect>
  3610.             <left>142</left>
  3611.             <top>174</top>
  3612.             <right>223</right>
  3613.             <bottom>192</bottom>
  3614.         </rect>
  3615.         <style>roundrect</style>
  3616.         <showName> <true /> </showName>
  3617.         <highlight> <false /> </highlight>
  3618.         <autoHighlight> <false /> </autoHighlight>
  3619.         <sharedHighlight> <true /> </sharedHighlight>
  3620.         <family>0</family>
  3621.         <titleWidth>0</titleWidth>
  3622.         <icon>0</icon>
  3623.         <textAlign>center</textAlign>
  3624.         <font>Chicago</font>
  3625.         <textSize>12</textSize>
  3626.         <textStyle>plain</textStyle>
  3627.         <name>Yes</name>
  3628.         <script>-- getsHit: True-- iType: btn</script>
  3629.     </part>
  3630.     <part>
  3631.         <id>6</id>
  3632.         <type>button</type>
  3633.         <visible> <true /> </visible>
  3634.         <reserved5> 0 </reserved5>
  3635.         <reserved4> 0 </reserved4>
  3636.         <reserved3> 0 </reserved3>
  3637.         <reserved2> 0 </reserved2>
  3638.         <reserved1> 0 </reserved1>
  3639.         <enabled> <true /> </enabled>
  3640.         <rect>
  3641.             <left>138</left>
  3642.             <top>97</top>
  3643.             <right>170</right>
  3644.             <bottom>129</bottom>
  3645.         </rect>
  3646.         <style>opaque</style>
  3647.         <showName> <false /> </showName>
  3648.         <highlight> <false /> </highlight>
  3649.         <autoHighlight> <false /> </autoHighlight>
  3650.         <sharedHighlight> <true /> </sharedHighlight>
  3651.         <family>0</family>
  3652.         <titleWidth>0</titleWidth>
  3653.         <icon>991</icon>
  3654.         <textAlign>center</textAlign>
  3655.         <font>Chicago</font>
  3656.         <textSize>12</textSize>
  3657.         <textStyle>plain</textStyle>
  3658.         <name>991</name>
  3659.         <script>-- getsHit: false-- iType: icon</script>
  3660.     </part>
  3661.     <part>
  3662.         <id>7</id>
  3663.         <type>field</type>
  3664.         <visible> <true /> </visible>
  3665.         <dontWrap> <false /> </dontWrap>
  3666.         <dontSearch> <false /> </dontSearch>
  3667.         <sharedText> <false /> </sharedText>
  3668.         <fixedLineHeight> <true /> </fixedLineHeight>
  3669.         <autoTab> <false /> </autoTab>
  3670.         <lockText> <true /> </lockText>
  3671.         <rect>
  3672.             <left>178</left>
  3673.             <top>91</top>
  3674.             <right>375</right>
  3675.             <bottom>158</bottom>
  3676.         </rect>
  3677.         <style>opaque</style>
  3678.         <autoSelect> <false /> </autoSelect>
  3679.         <showLines> <false /> </showLines>
  3680.         <wideMargins> <false /> </wideMargins>
  3681.         <multipleLines> <false /> </multipleLines>
  3682.         <reservedFamily> 0 </reservedFamily>
  3683.         <titleWidth>0</titleWidth>
  3684.         <icon>0</icon>
  3685.         <textAlign>left</textAlign>
  3686.         <font>Chicago</font>
  3687.         <textSize>12</textSize>
  3688.         <textStyle>plain</textStyle>
  3689.         <textHeight>14</textHeight>
  3690.         <name></name>
  3691.         <script>-- Fancy: false-- Scroll: false-- getsHit: False-- iType: stat</script>
  3692.     </part>
  3693.     <part>
  3694.         <id>8</id>
  3695.         <type>button</type>
  3696.         <visible> <true /> </visible>
  3697.         <reserved5> 0 </reserved5>
  3698.         <reserved4> 0 </reserved4>
  3699.         <reserved3> 0 </reserved3>
  3700.         <reserved2> 0 </reserved2>
  3701.         <reserved1> 0 </reserved1>
  3702.         <enabled> <true /> </enabled>
  3703.         <rect>
  3704.             <left>138</left>
  3705.             <top>97</top>
  3706.             <right>170</right>
  3707.             <bottom>129</bottom>
  3708.         </rect>
  3709.         <style>opaque</style>
  3710.         <showName> <false /> </showName>
  3711.         <highlight> <false /> </highlight>
  3712.         <autoHighlight> <false /> </autoHighlight>
  3713.         <sharedHighlight> <true /> </sharedHighlight>
  3714.         <family>0</family>
  3715.         <titleWidth>0</titleWidth>
  3716.         <icon>990</icon>
  3717.         <textAlign>center</textAlign>
  3718.         <font>Chicago</font>
  3719.         <textSize>12</textSize>
  3720.         <textStyle>plain</textStyle>
  3721.         <name>990</name>
  3722.         <script>-- getsHit: false-- iType: icon</script>
  3723.     </part>
  3724.     <part>
  3725.         <id>9</id>
  3726.         <type>button</type>
  3727.         <visible> <true /> </visible>
  3728.         <reserved5> 0 </reserved5>
  3729.         <reserved4> 0 </reserved4>
  3730.         <reserved3> 0 </reserved3>
  3731.         <reserved2> 0 </reserved2>
  3732.         <reserved1> 0 </reserved1>
  3733.         <enabled> <true /> </enabled>
  3734.         <rect>
  3735.             <left>138</left>
  3736.             <top>97</top>
  3737.             <right>170</right>
  3738.             <bottom>129</bottom>
  3739.         </rect>
  3740.         <style>opaque</style>
  3741.         <showName> <false /> </showName>
  3742.         <highlight> <false /> </highlight>
  3743.         <autoHighlight> <false /> </autoHighlight>
  3744.         <sharedHighlight> <true /> </sharedHighlight>
  3745.         <family>0</family>
  3746.         <titleWidth>0</titleWidth>
  3747.         <icon>990</icon>
  3748.         <textAlign>center</textAlign>
  3749.         <font>Chicago</font>
  3750.         <textSize>12</textSize>
  3751.         <textStyle>plain</textStyle>
  3752.         <name>990</name>
  3753.         <script>-- logic: Push-- grid: 0,0-- getsHit: false-- iType: icon</script>
  3754.     </part>
  3755.     <content>
  3756.         <layer>background</layer>
  3757.         <id>48</id>
  3758.         <text>124,83,388,2351falsehitMe,290Float3</text>
  3759.     </content>
  3760.     <content>
  3761.         <layer>background</layer>
  3762.         <id>20</id>
  3763.         <text>!Alert</text>
  3764.     </content>
  3765.     <content>
  3766.         <layer>card</layer>
  3767.         <id>7</id>
  3768.         <text>^0</text>
  3769.     </content>
  3770.     <content>
  3771.         <layer>background</layer>
  3772.         <id>28</id>
  3773.         <text>cd btn id 4cd btn id 3cd btn id 5cd fld id 7cd btn id 9cd btn id 8cd btn id 6</text>
  3774.     </content>
  3775.     <content>
  3776.         <layer>background</layer>
  3777.         <id>36</id>
  3778.         <text>Button "No"Button "Cancel"Button "Yes"Static Text "^0"Icon "990"Icon "990"Icon "991"</text>
  3779.     </content>
  3780.     <content>
  3781.         <layer>background</layer>
  3782.         <id>30</id>
  3783.         <text>Message‚Ä¢thePaletteMessage WatcherVariable WatcherScrollFatBitsPatternsToolsDialog MakerRolo</text>
  3784.     </content>
  3785.     <content>
  3786.         <layer>background</layer>
  3787.         <id>84</id>
  3788.         <text>Put Stop("You shouldn't be doing that", "Sorry", "So What")Put Note("This could be interesting", "OK")Put Caution("Are you sure?", "Yes", "No", "Cancel")</text>
  3789.     </content>
  3790.     <content>
  3791.         <layer>background</layer>
  3792.         <id>80</id>
  3793.         <text>This dialog has three HyperTalk functions associated with it. They allow you to alert the user in a more conventional way about situations and choices that need to be made. It includes one of three icons and up to three buttons. Each icon corresponds to a HyperTalk function and reflect a different severity of alert (as represented by different icons). These functions are Note, Caution, and Stop. Their syntax and use is identical -- they differ only in the icon displayed:Get Note(¬´Text¬ª, ¬´Btn1¬ª,¬´Btn2¬ª,¬´Btn3¬ª)Where ¬´Text¬ª is the text to be displayed in the dialog and ¬´btn1¬ª through ¬´btn3¬ª allow you to specify the labels for up to three buttons.Note (and its sisters Caution and Stop) return the name of the button selected by the user.To experiment with this dialog, click the Show button on the tool palette.</text>
  3794.     </content>
  3795.     <content>
  3796.         <layer>background</layer>
  3797.         <id>83</id>
  3798.         <text>false</text>
  3799.     </content>
  3800.     <name>!Alert</name>
  3801.     <script>on hitMe dialog, itemHit, partHit-- Hit handler created on: Thursday, September 19, 1991if itemHit = 0 then -- Initialize dialogelse if itemHit = 1 then -- Button "No"else if itemHit = 2 then -- Button "Cancel"else if itemHit = 3 then -- Button "Yes"end ifend hitMefunction Caution txt, pushBtn1, pushBtn2, pushBtn3return alert("Caution", txt, pushBtn1, pushBtn2, pushBtn3)end Cautionfunction Note txt, pushBtn1, pushBtn2, pushBtn3return alert("Note", txt, pushBtn1, pushBtn2, pushBtn3)end Notefunction Stop txt, pushBtn1, pushBtn2, pushBtn3return alert("Stop", txt, pushBtn1, pushBtn2, pushBtn3)end Stopfunction alert lvl, txt, pushBtn1, pushBtn2, pushBtn3put return into CRif lvl is "Stop" then put "6‚óäHide"&CR&"7‚óäHide" into iconHiderelse if lvl is "Caution" then put "5‚óäHide"&CR&"7‚óäHide" into iconHiderelse if lvl is "Note" then put "5‚óäHide"&CR&"6‚óäHide" into iconHiderelse exit alertget paramCount()if pushBtn1 is empty thenput Dialoger("!Alert"¬¨, "1‚óähide"¬¨, "2‚óä"&pushBtn1 & return & "Default" & return & "OK"¬¨, "3‚óähide"¬¨, "4‚óä"&txt¬¨, iconHider) into dResultelse if pushBtn2 is empty thenput Dialoger("!Alert"¬¨, "1‚óähide"¬¨, "2‚óä"&pushBtn1 & return & "Default"¬¨, "3‚óähide"¬¨, "4‚óä"&txt¬¨, iconHider) into dResultelse if pushBtn3 is empty thenput Dialoger("!Alert"¬¨, "1‚óä"&pushBtn1 ¬¨, "2‚óä"&pushBtn2 ¬¨, "3‚óähide"¬¨, "4‚óä"&txt¬¨, iconHider) into dResultelseput Dialoger("!Alert"¬¨, "1‚óä"&pushBtn2 ¬¨, "2‚óä"&pushBtn3 ¬¨, "3‚óä"&pushBtn1 & return & "Default" & return & "Dismiss" ¬¨, "4‚óä"&txt¬¨, iconHider) into dResultend ifif first word of dResult is "Error:"then exit to HyperCardrepeat with i = 1 to 3get line i of dResultif it is not empty then return itend repeatend alerton itemHitbeepend itemHit</script>
  3802. </card>
  3803.  
  3804.  
  3805.